cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Error -- Unable to set certificate file

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 30 Oct 2003 09:14:10 +0100 (CET)

On Wed, 29 Oct 2003 trlists_at_clayst.com wrote:

> I built 7.10.7 on my local Linux box and uploaded it to the server in
> question. I still have the same problem -- this command on the server:
>
> /usr/local/bin/curl -v -k -E /path/cert.pem 'https://.....'
>
> gets this error:
>
> curl: (58) unable to set certificate file (wrong password?)

[snip]

> It appears that cURL it is not finding the .pem file, or is encountering an
> error before it looks. If I change the name of the file after -E so that it
> refers to a non-existent file, I still get the same error.

That certainly is a strange behavior that I can't explain. This is an OpenSSL
function (SSL_CTX_use_certificate_chain_file) that returns an error. I don't
understand why it would act differently on Windows compared to Linux.

(Performed in the lib/ssluse.c:cert_stuff() function.)

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Received on 2003-10-30