Thursday, March 01, 2012

HTTPS github access

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


* 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




Solution:


export GIT_SSL_NO_VERIFY=true


git config --global http.sslVerify false



  1. In Firefox, go to the github page (any)


  2. click on the github icon on the address bar to display the certificate


  3. Click through "more information" -> "display certificate" --> "details" and select each node in the hierarchy beginning with the uppermost one; for each of them click on "Export" and select the PEM format:

    • GTECyberTrustGlobalRoot.pem


    • DigiCertHighAssuranceEVRootCA.pem


    • DigiCertHighAssuranceEVCA-1.pem


    • github.com.pem




  4. Save the above files somewhere in your local drive, change the extension to .pem and move them to /usr/ssl/certs


  5. Run c_rehash from the bash. For find c_rehash run the following command
    locate c_rehash



Screenshot-Certificate Viewer%3A%22github.com%22


Screenshot-Page Info - https%3A--github.com-cloudfoundry-vcap.git


Screenshot-Save Certificate To File

No comments:

Post a Comment

Thank you for your feedback