cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl checks ssl certificate even with -k/--insecure key

From: romeros.amp <romeros.amp_at_gmail.com>
Date: Wed, 19 Sep 2012 20:29:48 -0700

Hi Dan,

curl --version
curl 7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b
zlib/1.2.3 libidn/0.6.5
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

The command and output is:
curl -vk "https://github.cp/anton/atr/raw/master/lime.rb?login=XXXX&token=YYYY"
* About to connect() to github.cp port 443
* Trying XX.XX.XX.XX... connected
* Connected to XX.XX.XX.XX port 443
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* SSLv2, Client hello (1):
SSLv3, TLS handshake, Server hello (2):
SSLv3, TLS handshake, CERT (11):
SSLv3, TLS alert, Server hello (2):
SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate
verify failed
* Closing connection #0
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate
verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). The default
 bundle is named curl-ca-bundle.crt; you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

Thanks,
Anton.

On Wed, Sep 19, 2012 at 1:40 PM, Dan Fandrich <dan_at_coneharvesters.com> wrote:
> On Wed, Sep 19, 2012 at 01:16:02PM -0700, romeros.amp wrote:
>> I am running curl command with -k option trying to get a file from a
>> corporate github, but curl call fails and i receive a message
>
> What is the exact command-line you're using for this download? What
> version of curl? Which SSL library and version? Can you post the
> connect log you get with the -v option?
>
>>>> 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 2012-09-20