Skip to content

Instantly share code, notes, and snippets.

@skawaii
Created January 16, 2012 20:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save skawaii/1622858 to your computer and use it in GitHub Desktop.
Weird Git/GnuTLS error
[jlcoope@nwhq-421-01:/home/users/jlcoope/sandbox]$ GIT_SSL_CERT=~/.certs/usercert.pem GIT_SSL_KEY=~/.certs/userkey.pem GIT_SSL_CAINFO=~/.certs/git-ca-certs.crt git clone https://titan.company.com/git/test.git
Cloning into test...
* Couldn't find host titan.company.com in the .netrc file; using defaults
* About to connect() to titan.company.com port 443 (#0)
* Trying 192.169.2.1... * Connected to titan.company.com (192.169.2.1) port 443 (#0)
* found 1 certificates in /home/users/jlcoope/.certs/git-ca-certs.crt
* error reading X.509 key or certificate file
* Closing connection #0
* Couldn't find host titan.company.com in the .netrc file; using defaults
* About to connect() to titan.company.com port 443 (#0)
* Trying 192.169.2.1... * Connected to titan.company.com (192.169.2.1) port 443 (#0)
* found 1 certificates in /home/users/jlcoope/.certs/git-ca-certs.crt
* error reading X.509 key or certificate file
* Closing connection #0
error: error reading X.509 key or certificate file while accessing https://titan.cloud.n-ask.com/git/test.git/info/refs
fatal: HTTP request failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment