Skip to content

Instantly share code, notes, and snippets.

Revisions

  1. @bygreencn bygreencn created this gist Apr 9, 2014.
    17 changes: 17 additions & 0 deletions goagent proxy SSL certificate for git
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    #disable git proxy using goagent
    git config --global http.proxy ""
    git config --global https.proxy ""
    git config --global http.sslCAinfo ""
    git config --global http.sslVerify true

    #enable git proxy and enable SSL certificate using goagent
    git config --global http.proxy 127.0.0.1:8087
    git config --global https.proxy 127.0.0.1:8087
    git config --global http.sslVerify true
    git config --global http.sslCAinfo [PATH to goagent CA]

    #enable git proxy and disnable SSL certificate using goagent
    git config --global http.proxy 127.0.0.1:8087
    git config --global https.proxy 127.0.0.1:8087
    git config --global http.sslVerify false
    git config --global http.sslCAinfo ""