fix: add DNS names to CSR and improve certificate generation

This commit is contained in:
Tanishq Dubey 2025-05-16 21:15:43 -04:00
parent 787262c8a0
commit 47f9b69876
No known key found for this signature in database
GPG Key ID: CFC1931B84DFC3F9

View File

@ -123,6 +123,7 @@ func GenerateCertificateRequest(commonName, keyOutPath, csrOutPath string) error
Organization: []string{"KAT System"},
},
SignatureAlgorithm: x509.SHA256WithRSA,
DNSNames: []string{commonName}, // Add the CN as a SAN
}
// Create CSR