instance method
OpenSSL::X509::StoreContext#chain
() -> ::Array[::OpenSSL::X509::Certificate]?
stctx.chain → nil | Array of X509::Certificate
ext/openssl/ossl_x509store.c
View on GitHub ↗
static VALUE
ossl_x509stctx_get_chain(VALUE self)
{
X509_STORE_CTX *ctx;
const STACK_OF(X509) *chain;
GetX509StCtx(self, ctx);
chain = X509_STORE_CTX_get0_chain(ctx);
if (!chain)
return Qnil; /* Could be an empty array instead? */
return ossl_x509_sk2ary(chain);
}
Returns the verified chain.
See also the man page X509_STORE_CTX_set0_verified_chain(3).