gpt4 book ai didi

ssl - 去接受来自远程主机的自签名证书

转载 作者:IT王子 更新时间:2023-10-29 01:59:18 26 4
gpt4 key购买 nike

我希望能够使用一个漂亮的 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com