Skip to content

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

Returns the certificate which caused the error.

See also the man page X509_STORE_CTX_get_current_cert(3).

See also #cleanup #current_crl #chain #error also in 4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0