cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: cURL / unable to set private key file

From: Oceanet - Cédric BASSAGET <cedric_at_oceanet.com>
Date: Thu, 09 Jul 2015 14:11:09 +0200

Hello Dan,

Problem solved, my crt file was not correct. Now I'm facing the issue
where I get this error :
curl: (56) SSL read: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1
alert unknown ca, errno 0

Don't understand why, because I'm using -k option...

Regards,
Cédric

On 09/07/2015 08:21, Dan Fandrich wrote:
> 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

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