diff --git a/examples/cert.go b/examples/cert.go index c90a4ca..fc9ac04 100644 --- a/examples/cert.go +++ b/examples/cert.go @@ -3,6 +3,7 @@ package main import ( + "crypto/x509/pkix" "fmt" "log" "os" @@ -22,6 +23,9 @@ func main() { log.Fatal(err) } options := gemini.CertificateOptions{ + Subject: pkix.Name{ + CommonName: host, + }, DNSNames: []string{host}, Duration: duration, }