fix: add DNS names to CSR and improve certificate generation
This commit is contained in:
parent
787262c8a0
commit
47f9b69876
@ -123,6 +123,7 @@ func GenerateCertificateRequest(commonName, keyOutPath, csrOutPath string) error
|
|||||||
Organization: []string{"KAT System"},
|
Organization: []string{"KAT System"},
|
||||||
},
|
},
|
||||||
SignatureAlgorithm: x509.SHA256WithRSA,
|
SignatureAlgorithm: x509.SHA256WithRSA,
|
||||||
|
DNSNames: []string{commonName}, // Add the CN as a SAN
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create CSR
|
// Create CSR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user