Created
March 23, 2020 10:01
-
-
Save anvinjain/8800dfc38ac28248d33c38694a26444d to your computer and use it in GitHub Desktop.
cert error in docker container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -o /dev/null -v https://github.com/gin-contrib/sse | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 13.234.210.38... | |
* TCP_NODELAY set | |
* Connected to github.com (13.234.210.38) port 443 (#0) | |
* ALPN, offering h2 | |
* ALPN, offering http/1.1 | |
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH | |
* successfully set certificate verify locations: | |
* CAfile: /etc/ssl/certs/ca-certificates.crt | |
CApath: /etc/ssl/certs | |
* TLSv1.2 (OUT), TLS header, Certificate Status (22): | |
} [5 bytes data] | |
* TLSv1.2 (OUT), TLS handshake, Client hello (1): | |
} [512 bytes data] | |
* TLSv1.2 (IN), TLS handshake, Server hello (2): | |
{ [89 bytes data] | |
* TLSv1.2 (IN), TLS handshake, Certificate (11): | |
{ [3384 bytes data] | |
* TLSv1.2 (OUT), TLS alert, Server hello (2): | |
} [2 bytes data] | |
* SSL certificate problem: self signed certificate in certificate chain | |
* Curl_http_done: called premature == 1 | |
* stopped the pause stream! | |
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 | |
* Closing connection 0 | |
curl: (60) SSL certificate problem: self signed certificate in certificate chain | |
More details here: https://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