cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Inject a PEM certificate using CURLOPT_SSL_CTX_FUNCTION

From: David Strauss <david_at_davidstrauss.net>
Date: Sat, 13 Apr 2013 14:04:05 -0700

On Sat, Apr 13, 2013 at 7:56 AM, Taiki <taiki_at_rakshata.com> wrote:
> Does anyone have a code using this feature or an example exploiting a PEM
> file?

It's easy to convert from PEM to PKCS#12:
openssl pkcs12 -chain -export -password pass:PASSWORDFORPKCS12 -in
CERTIFICATE.pem -out CERTIFICATE.p12

I'm sure it's also possible programmatically using the OpenSSL API.

--
David Strauss
   | david_at_davidstrauss.net
   | +1 512 577 5827 [mobile]
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-13