curl-users
Re: Curl (58) Unable to set Certificate File
Date: Thu, 28 Aug 2003 21:40:52 +0200
Hello
Webmaster Office2Office wrote:
Could you fix your mailer ?
> I have created a PEM certificate file using
>
> openssl pkcs12 -in secure-url.pfx -out secure-url.com
It seems you have no password...
> I have then tried to send a file using:
>
> curl -k -F "fileName=@C:\file.txt" -u username:password
> "https://target-url.com" -E/--cert secure-url.com:password --cert-type pem
>
> But I get the message
> Curl (58) Unable to set Certificate File (Wrong password?)
>
> Any ideas anyone?
curl -k -F "fileName=@C:\file.txt" -u username:password
"https://target-url.com" --cert secure-url.com --cert-type pem
And please:
You should use -k only in test environments.
That disables verification of the peer certificate
and renders https useless.
You should have the CA cert that issued the server cert in a file
and should use it with:
curl -F "fileName=@C:\file.txt" -u username:password --cert
secure-url.com --cert-type pem --cacert cacertfile.pem
"https://target-url.com"
Bye
Goetz
-- Goetz Babin-Ebell, TC TrustCenter AG, http://www.trustcenter.de Sonninstr. 24-28, 20097 Hamburg, Germany Tel.: +49-(0)40 80 80 26 -0, Fax: +49-(0)40 80 80 26 -126
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
- application/x-pkcs7-signature attachment: S/MIME Cryptographic Signature