SSLクライアント認証が必要なGitリポジトリをクローンする

忘備録

$ mkdir hoge
$ cd hoge
$ git init
$ git config --local http.sslCert /path/to/client.cert
$ git config --local http.sslKey /path/to/client.key
$ git config --local http.sslCaInfo /path/to/ca.cert
$ git config --local http.sslVerify false
$ git remote add origin https://your.domain/git/hoge.git
$ git pull origin master

http.sslCertは、「クライアントの証明書を作成(毎年)」のcert.pem
http.sslKeyは、「クライアントの証明書を作成(毎年)」のkey.pem
http.sslCaInfoは、「CAの各ファイルを作成」のcacert.der

引用:http://aki2o.hatenablog.jp/entry/2015/01/15/053351