Cocoapods: Is there an option to use ssh rather than http/https?

Created on 19 Jul 2012  路  5Comments  路  Source: CocoaPods/CocoaPods

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

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.

$ cd ~/.cocoapods/master
$ git remote set-url origin ssh://URI

All 5 comments

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:

  • 443 for https://
  • 22 for ssh:// and git@
  • 9418 for 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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tlandsmancars picture tlandsmancars  路  3Comments

pronebird picture pronebird  路  3Comments

sonu5 picture sonu5  路  3Comments

Mingmingmew picture Mingmingmew  路  3Comments

dawnnnnn picture dawnnnnn  路  3Comments