Add missing KeyUsages for default generated certificate

This commit is contained in:
Daniel Tomcej 2019-08-05 07:20:05 -06:00 committed by Traefiker Bot
parent 63a07fe6cf
commit 9299c3abc7

View file

@ -85,7 +85,7 @@ func derCert(privKey *rsa.PrivateKey, expiration time.Time, domain string) ([]by
NotBefore: time.Now(),
NotAfter: expiration,
KeyUsage: x509.KeyUsageKeyEncipherment,
KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature | x509.KeyUsageKeyAgreement | x509.KeyUsageDataEncipherment,
BasicConstraintsValid: true,
DNSNames: []string{domain},
}