我正在尝试使用acme/autocert在go中设置一个安全的websocket服务器(wss://)。程序启动,但当我尝试连接它时,我得到以下错误:unable to authorize "<myfunc(w http.ResponseWriter, r *http.Request) { })
certManag
我想设置TLS,让我们用golang.org/x/crypto/acme/autocert在Golang加密。为什么我要在Manager中设置HostPolicy?在没有默认autocert.HostWhitelist的情况下,一切似乎都很好。http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {})
m := autoce
这个过程一直在退出,下面是终端输出的一部分:Fetching https://golang.org/x/crypto/acme/autocertgo-get=1
Parsing meta tags from https://golang.org/x/crypto/acme/autocert?go-get=1 (status code 2