Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
OpenSSL::X509::Request#signature_algorithm
() -> ::String
req.signature_algorithm → string
ext/openssl/ossl_x509req.c
View on GitHub ↗
static VALUE
ossl_x509req_get_signature_algorithm(VALUE self)
{
X509_REQ *req;
const X509_ALGOR *alg;
const ASN1_OBJECT *obj;
GetX509Req(self, req);
X509_REQ_get0_signature(req, NULL, &alg);
X509_ALGOR_get0(&obj, NULL, NULL, alg);
return ossl_asn1obj_to_string_long_name(obj);
}
Returns the signature algorithm used to sign this request.
Returns the long name of the signature algorithm, or the dotted decimal notation if OpenSSL does not define a long name for it.