tags:

views:

103

answers:

1

I'm stuck behind a firewall so have to use https to access my github repository. It's a new one I'm creating & am using cygwin 1.7.7 on XP. I've tried setting the remote to https://[email protected]/oharab/ExcelANT.git, but pushing prompts for a password, but doesn't do anything once I've entered it. https://oharab:github.com/oharab/ExcelANT.git and cloning the empty repo from scratch but each time it gives me the same error 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/oharab/ExcelANT.git/info/refs

Turning on GIT_CURL_VERBOSE=1 gives me

* About to connect() to github.com port 443 (#0)
*   Trying 207.97.227.239... * successfully set certificate verify locations:
*   CAfile: none
  CApath: /usr/ssl/certs
* SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
* Expire cleared
* Closing connection #0
* About to connect() to github.com port 443 (#0)
*   Trying 207.97.227.239... * successfully set certificate verify locations:
*   CAfile: none
  CApath: /usr/ssl/certs
* SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
* Expire cleared
* Closing connection #0
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/oharab/ExcelANT.git/info/refs

fatal: HTTP request failed

Is this a problem with my firewall, cygwin or what?

Ben

Posted too soon!

I hadn't set the http proxy in the git config, however it's an ISA server that needs NTLM authentication, not basic, so unless anyone knows how to force git to use NTLM, I'm scuppered! B.

+2  A: 

There is a better way than using http access and that is to use the ssh service offered by github on port 443 of the ssh.github.com server. It is a bit too much to explain it in an answer but you can read about it in this blog post

We've been using this for over year now on both Linux and Windows.

Peter Tillemans