There is a library base on lego and letsencrypt project: https://github.com/ossrs/go-oryx-lib/blob/master/https/example_test.go#L33 And there is a server as an example for that library: https://github.com/ossrs/go-oryx/blob/develop/httpx-static/main.go#L174
On Wednesday, June 7, 2017 at 1:07:16 AM UTC+8, Sankar wrote: > > Hi > > I saw the tweet https://twitter.com/mholt6/status/848704744474292224 and > decided to try out the code > > log.Fatal(http.Serve(autocert.NewListener("mydomain.com > <http://example.com/>"), handler)) > > but when I try to visit: https://localhost:443, I get an error on the > server console as: server name component count invalid > > Is there any detailed documentation on how to get letsencrypt working with > golang ? > > I am using go 1.8.3 > > Google gave me https://github.com/golang/go/issues/17053 , but I am not > able to understand if the letsencrypt support is fully landed or not. Can > anyone point me to docs and best practices for testing at localhost and > deploying at production, with https and letsencrypt ? Thanks. > -- 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 golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.