mirror of
https://github.com/wahyd4/cert-manager.git
synced 2026-08-09 13:16:20 +10:00
Add Key Encipherment bit to Key Usage extension
Google Chrome rejects the certificate for SSL connections if the Key Usage extension does not include the keyEncipherment purpose.
This commit is contained in:
@@ -110,7 +110,7 @@ func createCertificateTemplate(publicKey interface{}, commonName string, altName
|
||||
NotBefore: time.Now(),
|
||||
NotAfter: time.Now().Add(certificateDuration),
|
||||
// see http://golang.org/pkg/crypto/x509/#KeyUsage
|
||||
KeyUsage: x509.KeyUsageDigitalSignature,
|
||||
KeyUsage: x509.KeyUsageDigitalSignature | x509.KeyUsageKeyEncipherment,
|
||||
DNSNames: altNames,
|
||||
}
|
||||
return cert, nil
|
||||
|
||||
Reference in New Issue
Block a user