Created
July 26, 2019 08:30
-
-
Save karno/a912cfce93c212bfbc55f32a3abad849 to your computer and use it in GitHub Desktop.
GitHubへのgit clone/pull/push時にSSL証明書まわりでエラーが出るときの本当に正しい対処法 ref: https://qiita.com/karno/items/5ad5006a4912617d2610
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
$ git clone https://github.com/karno/Cadena | |
Cloning into 'Cadena'... | |
fatal: unable to access 'https://github.com/karno/Cadena/': SSL certificate problem: self signed certificate in certificate chain | |
exit status 128 |
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
$ set GIT_CURL_VERBOSE=1 | |
$ git clone https://github.com/karno/Cadena | |
Cloning into 'Cadena'... | |
* Couldn't find host github.com in the _netrc file; using defaults | |
* Trying 192.30.255.112... | |
* TCP_NODELAY set | |
* Connected to github.com (192.30.255.112) port 443 (#0) | |
* ALPN, offering http/1.1 | |
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH | |
* successfully set certificate verify locations: | |
* CAfile: C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt | |
CApath: none | |
* SSL certificate problem: self signed certificate in certificate chain | |
* Closing connection 0 | |
fatal: unable to access 'https://github.com/karno/Cadena/': SSL certificate problem: self signed certificate in certificate chain | |
exit status 128 |
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
$ openssl s_client -connect www.github.com:443 | |
CONNECTED(00000148) | |
depth=1 O = AO Kaspersky Lab, CN = Kaspersky Anti-Virus Personal Root Certificate | |
verify error:num=19:self signed certificate in certificate chain | |
--- | |
Certificate chain | |
0 s:businessCategory = Private Organization, jurisdictionC = US, jurisdictionST = Delaware, serialNumber = 5157550, C = US, ST = California, L = San Francisco, O = "GitHub, Inc.", CN = github.com | |
i:O = AO Kaspersky Lab, CN = Kaspersky Anti-Virus Personal Root Certificate | |
1 s:O = AO Kaspersky Lab, CN = Kaspersky Anti-Virus Personal Root Certificate | |
i:O = AO Kaspersky Lab, CN = Kaspersky Anti-Virus Personal Root Certificate | |
...以下略... |
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
$ git clone https://github.com/karno/Cadena | |
Cloning into 'Cadena'... | |
remote: Enumerating objects: 1727, done. | |
remote: Total 1727 (delta 0), reused 0 (delta 0), pack-reused 1727 eceiving objects: 97% (1676/1727), 188.01 K | |
Receiving objects: 100% (1727/1727), 471.64 KiB | 632.00 KiB/s, done. | |
Resolving deltas: 100% (1314/1314), done. |
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
[http] | |
sslVerify = false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment