curl-users
Another HTTPS problem
Date: Mon, 22 Sep 2003 17:11:40 +0200
Hi,
I'm discover cURL and I want to access to a HTTPS url.
Firstable, I am 3 files :
- CAROOT.cer (the root certificate),
- CAHOMO.cer (the intermediat certificate),
- MYKEY.pfx (my private key).
When I import all files in my IE, all work properly.
To use cURL, I convert my 3 files with openSSL to have "pem" files :
> openssl x509 -in CAROOT.cer -inform d -out CAROOT.pem
> openssl x509 -in CAHOMO.cer -inform d -out CAHOMO.pem
> openssl pkcs12 -in MYKEY.pfx -nocerts -nodes -out MYKEY.pem
I try :
> curl -E MYKEY.pem:0b14b67f https://mywebsite
and the response is :
curl: (58) unable to set certificate file (wrong password?)
If I try :
> curl curl --cacert CAHOMO.cer -E MYKEY.pem:0b14b67f https://mywebsite
the response is the same : curl: (58) unable...
Have you any idea ?
Thank you for your help,
-- Frédéric ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sfReceived on 2003-09-22