Skip to content

Commit 9299c3a

Browse files
dtomcejtraefiker
authored andcommitted
Add missing KeyUsages for default generated certificate
1 parent 63a07fe commit 9299c3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/tls/generate/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func derCert(privKey *rsa.PrivateKey, expiration time.Time, domain string) ([]by
8585
NotBefore: time.Now(),
8686
NotAfter: expiration,
8787

88-
KeyUsage: x509.KeyUsageKeyEncipherment,
88+
KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature | x509.KeyUsageKeyAgreement | x509.KeyUsageDataEncipherment,
8989
BasicConstraintsValid: true,
9090
DNSNames: []string{domain},
9191
}

0 commit comments

Comments
 (0)