I prefer using ssh with github. Right now I've got to set the GIT_SSL_NO_VERIFY env var to work around the following problem:
error: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/CocoaPods/Specs.git/info/refs
fatal: HTTP request failed
There is no option for this, but you can go into the spec repo dir and change the remote, CP itself doesn't care.
$ cd ~/.cocoapods/master
$ git remote set-url origin ssh://URI
I am facing the same issue
Setting up CocoaPods master repo
Cloning spec repo master' fromhttps://github.com/CocoaPods/Specs.git' (branch `master')
[!] git clone 'https://github.com/CocoaPods/Specs.git' master
Cloning into 'master'...
error: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/CocoaPods/Specs.git/info/refs?service=git-upload-pack
fatal: HTTP request failed
please let me know step by step ...
I listed exact steps, for a workaround, in my earlier comment. Note, however, that there shouldn鈥檛 be a cert verify failure, so something in your system is bodged. I.e. you probably have outdated root certs. Maybe the github support pages already have a mtnion on this or you can ask them, because this is outside of the scope of CP specific support.
This seems to happen on slow / bad networks. SSL handshaking fails on slow networks, especially if there's a captive portal.
Check for port blocking to github.com over TCP ports:
https://ssh:// and git@git://I've found many enterprise networks and some WiFi spots do arbitrary port blocking by only allowing 80 and 443.
Also, make sure you're not using a proxy such as squid, privoxy, etc.: env | grep -i proxy
It would be great if there is something like use ssh mode
@alloy https://github.com/CocoaPods/CocoaPods/issues/2649
Most helpful comment
There is no option for this, but you can go into the spec repo dir and change the remote, CP itself doesn't care.