instance method
OpenSSL::OCSP::CertificateId#issuer_key_hash
() -> ::String
certificate_id.issuer_key_hash → String
ext/openssl/ossl_ocsp.c
View on GitHub ↗
static VALUE
ossl_ocspcid_get_issuer_key_hash(VALUE self)
{
OCSP_CERTID *id;
ASN1_OCTET_STRING *key_hash;
VALUE ret;
GetOCSPCertId(self, id);
OCSP_id_get0_info(NULL, NULL, &key_hash, NULL, id);
ret = rb_str_new(NULL, ASN1_STRING_length(key_hash) * 2);
ossl_bin2hex(ASN1_STRING_get0_data(key_hash), RSTRING_PTR(ret),
ASN1_STRING_length(key_hash));
return ret;
}
Returns the issuerKeyHash of this certificate ID, the hash of the issuer’s public key.
See also
#hash_algorithm
#issuer_name_hash
#cmp_issuer
#serial
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0