cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl: (35) couldn't use certificate! error

From: Zemljic, Martin <Martin.Zemljic_at_astec.si>
Date: Tue, 8 Jan 2002 18:36:57 +0100

Here is the problem (either in command line and PHP script)

curl -E cert.PEM -v https://some.secure.page/somelocation
Enter PEM pass phrase: ***

ends with

curl: (35) couldn't use certificate!

Original certificate was issued in .pfx form (Microsoft, so IE and Netscape
can import them), afterwards I turned them into .p12 form using Netscape,
retaining the same PIN. Since CURL needs PEM certificate, I did it using

openssl pkcs12 -in cert.p12 -out cert.PEM

Enter Import Password: ***
MAC verified OK
Enter PEM pass phrase: ***
Verifying password - Enter PEM pass phrase: ***

Where shall I search further?

RH LX kernel 2.4.7
PHP 4.0.6
CURL 7.8-1
libssl 0.9.6b

Martin
Received on 2002-01-08