curl-users
Re: Another HTTPS problem
Date: Mon, 22 Sep 2003 21:11:32 +0200
Hello Frédéric,
Frédéric Dufour wrote:
> 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).
Where is your user certificate ?
It should be in the MYKEY.pfx...
> 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
openssl pkcs12 -in MYKEY.pfx -clcerts -out MYCERT.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 ?
It seems you never set your certificate ...
curl --cacert CAROOT.pem --cert MYCERT.pem --key MYKEY.pem \
https://mywebsite
Bye
Goetz
-- Goetz Babin-Ebell, TC TrustCenter AG, http://www.trustcenter.de Sonninstr. 24-28, 20097 Hamburg, Germany Tel.: +49-(0)40 80 80 26 -0, Fax: +49-(0)40 80 80 26 -126
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
- application/x-pkcs7-signature attachment: S/MIME Cryptographic Signature