End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
OpenSSL::X509::StoreContext#current_cert
stctx.current_cert → X509::Certificate
ext/openssl/ossl_x509store.c
View on GitHub ↗
static VALUE
ossl_x509stctx_get_curr_cert(VALUE self)
{
X509_STORE_CTX *ctx;
GetX509StCtx(self, ctx);
return ossl_x509_new(X509_STORE_CTX_get_current_cert(ctx));
}
Returns the certificate which caused the error.
See also the man page X509_STORE_CTX_get_current_cert(3).