End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
OpenSSL::OCSP::CertificateId#issuer_key_hash
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, key_hash->length * 2);
ossl_bin2hex(key_hash->data, RSTRING_PTR(ret), key_hash->length);
return ret;
}
Returns the issuerKeyHash of this certificate ID, the hash of the issuer’s public key.
See also
#initialize_copy
#issuer_name_hash
#hash_algorithm
#serial
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0