cURL / Mailing Lists / curl-users / Single Mail

curl-users

Problems accessing https site with certificate

From: Nico Alberti <n8_at_langhirano.it>
Date: Mon, 05 Jan 2004 15:06:57 +0100

Hi everybody. I am trying my online bank home page, that uses a PKCS12
client certificate. After having read other list's messages I do the
following (curl 7.10.8 (win32) libcurl/7.10.8 OpenSSL/0.9.7a):

- I create the PEM certificate:
C:\>opessl.exe pkcs12 -in cert.p12 -out bankcert.pem -clcerts
Enter Import Password:
MAC verified OK
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:

C:\>

- Then I create the key:
C:\>openssl.exe pkcs12 -in cert.p12 -out bankkey.pem -nocerts
Enter Import Password:
MAC verified OK
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:

C:\>

- And finally I issue the command:
C:\>curl -k --cert bankcert.pem --key bankkey.pem
https://homebanking.mybank.it
Enter PEM pass phrase:
curl: (35) SSL: error:00000000:lib(0):func(0):reason(0)

C:\>curl -k --cert bankcert.pem --key bankkey.pem
https://homebanking.mybank.it
Enter PEM pass phrase:
curl: (35) SSL: error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert
bad certificate

It randomly exits with these two errors. I don't know much about ssl
issues, so If somebody could suggest me what to check, would be greatly
appreciated.

Thank you in advance.

-- 
Ciao
Nico
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Received on 2004-01-05