Categorygithub.com/go-training/trainingexample21-simple-golang-https-tls
package
0.0.0-20250522095206-0ab99f966bf3
Repository: https://github.com/go-training/training.git
Documentation: pkg.go.dev

# README

Simple https-tls server example

Generate SSL Certificate

Install mkcert tool.

$ mkcert -install
Using the local CA at "/Users/xxxxx/Library/Application Support/mkcert" ✨

create localhost certificate:

$ mkcert myapp.dev example.com
Using the local CA at "/Users/xxxxxx/Library/Application Support/mkcert" ✨

Created a new certificate valid for the following names 📜
 - "example.com"
 - "myapp.dev"

The certificate is at "./example.com+1.pem" and the key at "./example.com+1-key.pem" ✅