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
tls-sni disabled on LetsEncrypt #7
Comments
Also does not work. |
@deepch it won't because tls-sni is disabled on letsencrypt's end, you have to use http-01 You can do this in a manner similar to below m := &autocert.Manager{
Prompt: autocert.AcceptTOS,
HostPolicy: autocert.HostWhitelist(panel.Config.Web.DomainNames[0:]...),
}
dir := cacheDir()
fmt.Println("Using cache: ", dir)
if err := os.MkdirAll(dir, 0700); err != nil {
log.Printf("warning: autocert.NewListener not using a cache: %v", err)
} else {
m.Cache = autocert.DirCache(dir)
}
go http.ListenAndServe(":http", m.HTTPHandler(nil))
return autotls.RunWithManager(panel.GinInstance, *m) |
this method redirect http to https I need pure :80 and https ;( |
@deepch you can turn of the redirect by supplying a handler in |
thx I run it
if use go http.ListenAndServe(":http", m.HTTPHandler(nil)) <--- nil work as redirect thx you. |
See #26 |
http: TLS handshake error from 82.34.xxx.xxx:55065: acme/autocert: unable to authorize "xxx.xxx.xxx"; tried ["tls-sni-02" "tls-sni-01"]
The text was updated successfully, but these errors were encountered: