PKCS#7

2008-07-25 Thread earthworm
Hello, Anybody know how I can extract the certificates from a chained PKCS#7 file? I can't seem to find the part of the API that deals with this, although I can find lots of references to the command line program that does it. Thanks, Gaz _

Re: Public and private key compatibility

2008-07-24 Thread earthworm
On 24/7/2008, "Victor Duchovni" <[EMAIL PROTECTED]> wrote: >Sample call sequence: > > if (SSL_CTX_use_certificate_chain_file(...) <= 0) { > /* error */ > } > if (SSL_CTX_use_PrivateKey_file(...) <= 0) { > /* error */ > } > if (!SSL_CTX_check

Public and private key compatibility

2008-07-24 Thread earthworm
Hello list, I'd like to do more in my application on verifying the SSL certificates used. I'm finding that if I change my private key, but don't alter the ASN1 structure, then this fact isn't detected until later when I try to do an actual SSL handshake. Is there anyway to do this as part of my p