Revert "certificate: Remove Subject from CreateOptions"

This reverts commit ce649ecc66.
This commit is contained in:
Adnan Maolood
2021-03-04 20:04:46 -05:00
parent c9e2af98f3
commit 649b20659b
3 changed files with 17 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
package main
import (
"crypto/x509/pkix"
"fmt"
"log"
"os"
@@ -24,6 +25,9 @@ func main() {
log.Fatal(err)
}
options := certificate.CreateOptions{
Subject: pkix.Name{
CommonName: host,
},
DNSNames: []string{host},
Duration: duration,
}