我希望能够使用一个漂亮的 URL 从我的 Stash 服务器go get
。我的存储服务器只能通过 HTTPS 工作。问题是我与存储一起使用的 SSL 证书是自签名的,任何 go get
到我的服务器都会给我以下错误:
x509: certificate signed by unknown authority
有没有办法从 go get
授权自签名证书?
最佳答案
使用 go get -insecure https://xxxxx
。
来自go get -h
:
The -insecure flag permits fetching from repositories and resolving custom domains using insecure schemes such as HTTP. Use with caution.
关于ssl - 去接受来自远程主机的自签名证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32575775/