instance method
OpenSSL::X509::Certificate#signature_algorithm
() -> ::String
cert.signature_algorithm => string
ext/openssl/ossl_x509cert.c
View on GitHub ↗
static VALUE
ossl_x509_get_signature_algorithm(VALUE self)
{
X509 *x509;
const ASN1_OBJECT *obj;
GetX509(self, x509);
X509_ALGOR_get0(&obj, NULL, NULL, X509_get0_tbs_sigalg(x509));
return ossl_asn1obj_to_string_long_name(obj);
}
Returns the signature algorithm used to sign this certificate. This returns the algorithm name found in the TBSCertificate structure, not the outer Certificate structure.
Returns the long name of the signature algorithm, or the dotted decimal notation if OpenSSL does not define a long name for it.