cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Accessing a client certificate store with OpenSSL (to pass a cert to libcurl)

From: <Mark_Rubin_at_factset.com>
Date: Wed, 17 May 2000 15:32:35 -0700

Daniel,

Thanks for the pointers, but I think I wasn't clear in my question. I
understand that I have to pass a certificate in PEM format to
libcurl or curl. What I don't know how to do--and maybe you can't do this--is
use OpenSSL to fetch a client certificate that I've installed with IE on
Windows (or even Netscape, although I used IE to install it) to then go
translate into PEM format to feed to libcurl. I know how to use OpenSSL to
convert a DER certificate, say, into PEM format, but how do I get the DER
formatted certificate out of my certificate store on Windows to translate? I
can look into using the Windows CryptoAPI to help out with this, but I was
wondering if there's some way to use OpenSSL to do this.

So again, the problem is this: I've installed my client certificate using IE on
Windows (and from what I understand, it gets stored as a set of registry
entries), and I'd like now to use that certificate to authenticate my client to
my server. How do I get that certificate to put into PEM format to then pass
into libcurl when using libcurl to fetch a resource from my server over HTTPS?

Thanks for any help or insight,
Received on 2000-05-18