Installing Let's Encrypt on Go Server

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:
aye.kim

I ran this command:
sudo certbot certonly --standalone --preferred-challenges tls-sni -d aye.kim

It produced this output:
Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA.

My web server is (include version):
Ubuntu 18.04

The operating system my web server runs on is (include version):
Go

My hosting provider, if applicable, is:
DO

I can login to a root shell on my machine (yes or no, or I don’t know):
yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):
certbot 0.31.0

How can I install SSL for a server using Go? I have installed it on Nginx and Apache but never installed with Go.

I’m getting error with both the port 80 and 443 for standalone and my Go Server is using port 80.

Hi @saumyabratadutt

Certbot doesn’t support tls-sni.

That’s not defined.

Use a defined combination.

If your Go program has an embedded webserver and you don’t want to use a reverse proxy, you may as well use autocert: https://godoc.org/golang.org/x/crypto/acme/autocert#example-NewListener

No need for an external ACME client like Certbot.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.