Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (21 sloc) 906 Bytes

+++ title = "Auto TLS Recipe" description = "Automatic TLS certificates from Let's Encrypt recipe for Echo" [menu.main] name = "Auto TLS" parent = "cookbook" +++

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.

Server

server.go

{{< embed "auto-tls/server.go" >}}

[Source Code]({{< source "auto-tls" >}})

Maintainers