Auto TLS

This recipe demonstrates how to obtain TLS certificates for a domain automatically from Let’s Encrypt. Echo#StartAutoTLS accepts an address which should listen on port 443.

Browse to https://<DOMAIN>. If everything goes fine, you should see a welcome message with TLS enabled on the website.

Auto TLS - 图1tip

Server

cookbook/auto-tls/server.go

  1. loading...