cURL / Mailing Lists / curl-users / Single Mail

curl-users

cURL / unable to set private key file

From: Oceanet - Cédric BASSAGET <cedric_at_oceanet.com>
Date: Wed, 08 Jul 2015 10:24:57 +0200

Hello,
I have a problem since I updated curl 7.19 to 7.43.

I'm trying to query a ssl distant website, with the following command line :
curl -ivk https://website/portailsso.wsdl \
     --key /etc/pki/tls/private/private.key \
     --cert /home/sites/xxx/web/cert/cert.crt \
     [ --cacert /etc/pki/tls/certs/cacert.pem ]

And I always get the following error :
* Trying x.x.x.x...
* Connected to hml-xxx.fr (x.x.x.x) port 443 (#0)
* unable to set private key file: '/etc/pki/tls/private/private.key'
type PEM
* Closing connection 0
curl: (58) unable to set private key file:
'/etc/pki/tls/private/private.key' type PEM

I've tried to convert my private key to rsa key : same error
tried to add a passphrase to private key : same error.

I've ask on IRC channel (#curl_at_freenode) but everybody seems to sleep
there ;)

Thanks in advance for your help.
Regards,
Cédric
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-07-08