Fix SANs for step-ca certificate

Co-authored-by: Herman Slatman <hslatman@users.noreply.github.com>
This commit is contained in:
Mariano Cano 2022-04-12 13:57:55 -07:00 committed by GitHub
parent c4ff0f1cc3
commit ea5f7f2acc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -546,7 +546,7 @@ func (a *Authority) GetTLSCertificate() (*tls.Certificate, error) {
} }
// Create initial certificate request. // Create initial certificate request.
cr, err := x509util.CreateCertificateRequest(a.config.CommonName, a.config.DNSNames, signer) cr, err := x509util.CreateCertificateRequest(a.config.CommonName, sans, signer)
if err != nil { if err != nil {
return fatal(err) return fatal(err)
} }