cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

From: Zemljic, Martin <Martin.Zemljic_at_astec.si>
Date: Wed, 9 Jan 2002 10:25:54 +0100

The certificte has the following sections (yes, I have read the manual, and
I hope I understood it...)
Bag Attributes
    friendlyName: 571...
    localKeyID: 19 ...
Key Attributes: <No Attributes>
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,...
.........
-----END RSA PRIVATE KEY-----
Bag Attributes
    friendlyName: ...
subject=...
issuer= ...
-----BEGIN CERTIFICATE-----
....
-----END CERTIFICATE-----
Bag Attributes
    friendlyName: ...
    localKeyID: 19...
subject=...
issuer= ...
-----BEGIN CERTIFICATE-----
....
-----END CERTIFICATE-----

I do not have deep knowledge on certificate structure, so please, confirm
that this is OK or point out what am I doing wrong.
Command openssl pkcs12 -cert certfile ... does nothing.

On Tue, 8 Jan 2002, Zemljic, Martin wrote:

> 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!

Is this really both your certificate and your private key merged into one
single file?

As the man page for curl -E says:

   Note that this certificate is the private key and the private
   certificate concatenated!

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

This indicates that it isn't...

--
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-01-09