[go-nuts] acme, letsencrypt and different HTTPS ports

2017-11-16 Thread Sankar
Hi I have an EC2 vm where I want to run two go https servers on different ports. I am using letsencrypt for the certificates and the code is like: server1.go: log.Fatal(http.Serve(autocert.NewListener("api1.example.com"), http.DefaultServeMux)) server2.go: log.Fatal(http.Serve(autocert.NewList

Re: [go-nuts] acme, letsencrypt and different HTTPS ports

2017-11-16 Thread Jakob Borg
The challenge method used by autocert only supports port 80 and 443. To use a different port you will need to use the dns-01 challenge method and the ACME client manually. On 17 Nov 2017, at 05:59, Sankar mailto:sankar.curios...@gmail.com>> wrote: Hi I have an EC2 vm where I want to run two g

Re: [go-nuts] acme, letsencrypt and different HTTPS ports

2017-11-17 Thread Shulhan
On Thu, 16 Nov 2017 20:59:16 -0800 (PST) Sankar wrote: > Hi > > I have an EC2 vm where I want to run two go https servers on > different ports. > > I am using letsencrypt for the certificates and the code is like: > > server1.go: > log.Fatal(http.Serve(autocert.NewListener("api1.example.com"),