Skip to content

Instantly share code, notes, and snippets.

Created January 15, 2015 05:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/7ba93ee5b389520907cd to your computer and use it in GitHub Desktop.
Save anonymous/7ba93ee5b389520907cd to your computer and use it in GitHub Desktop.
% curl https://crates.io/api/v1/crates/libz-sys/0.1.0/download -I -L -v --capath /etc/ssl/certs
* Trying 54.225.123.15...
* Connected to crates.io (54.225.123.15) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: /etc/ssl/cert.pem
CApath: /etc/ssl/certs
* TLSv1.2, TLS handshake, Client hello (1):
* TLSv1.2, TLS handshake, Server hello (2):
* TLSv1.2, TLS handshake, CERT (11):
* TLSv1.2, TLS handshake, Server key exchange (12):
* TLSv1.2, TLS handshake, Server finished (14):
* TLSv1.2, TLS handshake, Client key exchange (16):
* TLSv1.2, TLS change cipher, Client hello (1):
* TLSv1.2, TLS handshake, Finished (20):
* TLSv1.2, TLS change cipher, Client hello (1):
* TLSv1.2, TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* Server certificate:
* subject: OU=GT87339749; OU=See www.rapidssl.com/resources/cps (c)14; OU=Domain Control Validated - RapidSSL(R); CN=crates.io
* start date: 2014-11-06 11:11:23 GMT
* expire date: 2015-11-09 14:30:14 GMT
* subjectAltName: crates.io matched
* issuer: C=US; O=GeoTrust Inc.; CN=RapidSSL SHA256 CA - G3
* SSL certificate verify ok.
> HEAD /api/v1/crates/libz-sys/0.1.0/download HTTP/1.1
> User-Agent: curl/7.40.0
> Host: crates.io
> Accept: */*
>
< HTTP/1.1 302 Found
HTTP/1.1 302 Found
< Connection: keep-alive
Connection: keep-alive
< Server: nginx
Server: nginx
< Date: Thu, 15 Jan 2015 05:41:49 GMT
Date: Thu, 15 Jan 2015 05:41:49 GMT
< Set-Cookie: cargo_session=--3c156d7a3629aa08a1a0d538832f99ea30835cc8; HttpOnly; Secure; Path=/
Set-Cookie: cargo_session=--3c156d7a3629aa08a1a0d538832f99ea30835cc8; HttpOnly; Secure; Path=/
< Location: https://crates-io.s3-us-west-1.amazonaws.com/crates/libz-sys/libz-sys-0.1.0.crate
Location: https://crates-io.s3-us-west-1.amazonaws.com/crates/libz-sys/libz-sys-0.1.0.crate
< Strict-Transport-Security: max-age=31536000
Strict-Transport-Security: max-age=31536000
< Via: 1.1 vegur
Via: 1.1 vegur
<
* Connection #0 to host crates.io left intact
* Issue another request to this URL: 'https://crates-io.s3-us-west-1.amazonaws.com/crates/libz-sys/libz-sys-0.1.0.crate'
* Trying 54.231.232.201...
* Connected to crates-io.s3-us-west-1.amazonaws.com (54.231.232.201) port 443 (#1)
* successfully set certificate verify locations:
* CAfile: /etc/ssl/cert.pem
CApath: /etc/ssl/certs
* TLSv1.2, TLS handshake, Client hello (1):
* TLSv1.2, TLS handshake, Server hello (2):
* TLSv1.2, TLS handshake, CERT (11):
* TLSv1.2, TLS alert, Server hello (2):
* SSL certificate problem: unable to get local issuer certificate
* Closing connection 1
curl: (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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment