curl-users
Error -- Unable to set certificate file
Date: Tue, 28 Oct 2003 16:10:50 -0500
I am trying to use cURL in a fairly standard way and running into this
error.
On my local Windows box running:
curl 7.10.7 (win32) libcurl/7.10.7 OpenSSL/0.9.7c zlib/1.1.4
I do this:
h:\curl\curl.exe -v -E d:\path\cert.pem -k https://.....
and it connects to the server with no trouble.
If I copy the .pem file to the Linux server, running:
curl 7.9.8 (i386-redhat-linux-gnu) libcurl 7.9.8 (OpenSSL 0.9.6b)
and do this:
/usr/local/bin/curl -v -E /path/cert.pem 'https://.....'
I get this error:
curl: (35) unable to set certificate file (wrong password?)
It appears it can't find or isn't using the cert file -- I can change
the string after -E to anything I want (e.g. xyz.xyz) and I get the
same error. I realize this is missing the -k but my understanding is
this is not required for 7.9.x.
I know the server cert should be verified but this is a test
environment with self-signed certificates so the use of -k / not
verifying the server cert is appropriate here.
Also I will note one other item which might occur to someone -- when
transferring the certificate file to the Unix box I did translate the
newlines properly.
Can't think of anything else, but I'm hoping someone out there can!
----------
Tom Rawson
-------------------------------------------------------
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-28