cURL / Mailing Lists / curl-users / Single Mail

curl-users

-k not working?

From: Mike Brown <brown_at_mrvideo.vidiot.com>
Date: Mon, 9 Jul 2012 19:48:47 -0500

New user to curl.

curl -V
curl 7.26.0 (i386-pc-solaris2.10) libcurl/7.26.0 OpenSSL/1.0.0j zlib/1.2.7 libid
n/1.8 libssh2/1.4.2
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp s
ftp smtp smtps telnet tftp
Features: IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP

When I do the following, it errors out:

curl -C -k -T filename_to_send -u user:password ftps://domain.name/
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0cu
rl: (60) SSL certificate problem: unable to get local issuer certificate
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). If the default
 bundle file isn't adequate, 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.

But, as can be seen, I do have the -k option and it still fails.

Any clues as to why -k isn't working?

As a side note, when I run curl under Linux Fedora 14, using -v reports that
curl can't find the peer certificate info for StartCOM, the issuer of the
certificate for the site I am transferring files with. How does one get
the /etc/pki/tls/certs/ca-bundle.crt file updated?

Thanks.

MB

-- 
e-mail: vidiot_at_vidiot.com | vidiot_at_vidiot.net            /~\ The ASCII
        6082066843_at_email.uscc.net (140 char limit)       \ / Ribbon Campaign
Visit - URL: http://vidiot.com/                           X  Against
             http://vidiot.net/                          / \ HTML Email
-------------------------------------------------------------------
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-07-10