Skip to content

Instantly share code, notes, and snippets.

@jetzhliu
Created April 9, 2013 05:37
Show Gist options
  • Save jetzhliu/5343217 to your computer and use it in GitHub Desktop.
Save jetzhliu/5343217 to your computer and use it in GitHub Desktop.

转载

GoAgent的证书,在Linux下很悲剧,使用HTTPS协议都要求要有GoAgent证书 FF下我在浏览器里导入好像没什么效果,该提示证书问题的照样提示 Chrome我没用,不太清楚 百度了一下,导入chrome导入是用命令的: certutil -d sql:$HOME/.pki/nssdb -A -t "C,," -n GoAgent -i '/home/wzhy90/GoAgent/local/CA.crt' 类似这个 我也试过这个,导入后重新打开终端,export https_proxy代理后git clone https协议还是提示证书错误 我发现它提示/etc/ssl/certs/ca-certificates.crt这个证书,我打开证书查看发现里面是一些系统内置的证书,OK,想法是把GoAgent的证书也写到这个证书里面

方法很简单,十六进制编辑器打开GoAgent的crt,全选后复制,再打开系统的/etc/ssl/certs/ca-certificates.crt,在末尾粘贴上去,保存 也不用重启,终端也不用 重新打开,直接git clone就行了,没提示任何错误 终于完美了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment