Learn about securing your application using TLS.
-
Usually apps just listen for HTTP and offload TLS termination to a load balancer like Caddy or Nginx.
-
The net/http package provides support for TLS if you really need it
-
The crypto/tls package comes with a program for generating self signed certificates
go run /usr/local/go/src/crypto/tls/generate_cert.go --host localhost
https://golang.org/pkg/net/http/
https://golang.org/pkg/crypto/tls/
https://golang.org/x/crypto/acme/autocert/
https://caddyserver.com/
TLS support: Code Automatic TLS with ACME via LetsEncrypt: Code
TBD
All material is licensed under the Apache License Version 2.0, January 2004.