Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

goproxy vps 报错“acme/autocert: missing certificate” #24

Open
ocdman opened this issue Mar 31, 2018 · 1 comment
Open

goproxy vps 报错“acme/autocert: missing certificate” #24

ocdman opened this issue Mar 31, 2018 · 1 comment

Comments

@ocdman
Copy link

ocdman commented Mar 31, 2018

请问各位,我半年前到现在使用goproxy-vps版本一切正常,今天下午上google的时候突然连不上。
查看了goproxy-vps的日志写到

2018/03/31 02:30:34 http: TLS handshake error from XXX.XXX.XX:52861: acme/autocert: no supported challenge type found
2018/03/31 02:30:34 http: TLS handshake error from XXX.XXX.XX:52862: acme/autocert: missing certificate
2018/03/31 02:30:36 http: TLS handshake error from XXX.XXX.XX:52867: acme/autocert: missing certificate

然后,我以http方式能够打开我的域名网址,但是https却不行

为什么以前我也没有配置证书,能够以https方式打开我的域名网址,现在却不能了?

@ocdman
Copy link
Author

ocdman commented Apr 6, 2018

目前查下来的原因是
goproxy-vps使用了golang的acme/autocert库,这个库使用了Let’s Encrypt的tls-sni 协议实现自动签发证书。
而tls-sni-01协议由于可信的漏洞报告被Let’s Encrypt给禁用了,导致goproxy-vps无法自动创建证书。
解决办法是使用Let’s Encrypt提供的certbot工具来生成属于自己域名下ssl证书。详见https://goproxy0.github.io/discuss_history/goproxy/1470.html。
不过我生成的证书有时候会提示我不安全,但是第二天又安全了,反反复复的,不知道为什么。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant