cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: cURL / unable to set private key file

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 9 Jul 2015 08:21:00 +0200

On Wed, Jul 08, 2015 at 10:24:57AM +0200, Oceanet - Cédric BASSAGET wrote:
> 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
> ;)

What SSL back-end are you using with curl? Does the user have access to the
file /etc/pki/tls/private/private.key? Is it password-protected?

>>> Dan
-------------------------------------------------------------------
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-09