Hi, I've been trying to get an TLS server up and running for the past several days without success. I've used the following guides as reference:
https://goenning.net/2017/11/08/free-and-automated-ssl-certificates-with-go/ https://blog.kowalczyk.info/article/Jl3G/https-for-free-in-go-with-little-help-of-lets-encrypt.html and many more. But for all of them I'm getting This site can’t be reached site took too long to respond. The latest code that I tried is https://gist.github.com/samthor/5ff8cfac1f80b03dfe5a9be62b29d7f2 whose console log was: 2019/05/07 20:27:16 Serving http/https for domains: [my.domain.com] 2019/05/07 20:28:05 http: TLS handshake error from 99.xx.xx.221:43662: EOF The previous errors I got from console log were: 2019/05/07 11:11:11 http: TLS handshake error from 99.xx.xx.221:40820: context deadline exceeded 2019/05/07 11:11:11 http: TLS handshake error from 99.xx.xx.221:40826: acme/autocert: missing certificate . . . The console log looked very strange to me -- - I have a real site with real DNS name. - I ssh into the box as me, and start the program as: sudo ./autocert-server my.domain.com However, that 99.xx.xx.221 from all logs is my own home IP address (with a different domain name). How come the autocert TLS handshake trying to connect my home IP address, instead of the remote server that I run the web site from and provide the real DNS name with? thx -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/9ff1d193-93fb-45a1-8e1e-1688cf5fec17%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
