You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Marc Stern <st...@hotmail.com> on 2004/05/18 15:42:42 UTC

X509_STORE_CTX contents and getting the issuer

Hi,

I want to find the issuer of the current certificate in "ssl_callback_SSLVerify_CRL()".

The certificate is "X509_STORE_CTX_get_current_cert(ctx)", where ctx is the parameter to "ssl_callback_SSLVerify_CRL()". That's easy.

The problem is to use the "X509_STORE_CTX_get1_issuer()" function. It tries to get the issuer from ctx->ctx, but it seems that the issuer is in ctx->chain.
Do I have to build another X509_STORE_CTX structure ? If so, how ? By adding each certificate from the chain to a store, and then initialise a context from that store ?

Thanks,

Marc