Skip to content

Instantly share code, notes, and snippets.

@ypandit
Created October 16, 2012 04:48
Show Gist options
  • Save ypandit/3897281 to your computer and use it in GitHub Desktop.
Save ypandit/3897281 to your computer and use it in GitHub Desktop.
HTTPS access for Github on OSX

I was having issues with upgrading perlbrewon OSX Lion. self-upgrade did not upgrade. This command worked fine on Linux. This issue can be found at: App-perlbrew #226

Following steps helped resolve this issue

  1. Using Firefox download the following certificates

    1. DigiCertHighAssuranceEVCA-1.pem
    2. DigiCertHighAssuranceEVRootCA.pem
    3. github.com.pem
    4. GTECyberTrustGlobalRoot.pem
  2. This can be done by clicking on the 🔒 in the address bar; then More information -> Security -> View Certificate -> Details -> Certificate Hierarchy

    • Select each one and export as a *.pem file
  3. sudo mkdir /usr/ssl/certs
    mv *pem /usr/ssl/certs/
    cd /usr/ssl/certs && c_rehash

This will install only the certificates required for Github access. If you need all that are available; get it from http://curl.haxx.se/ca/cacert.pem

Reference:

  1. Stackoverflow - https github access
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment