crypto/tls: fix generate_cert.go comment RE: keyUsage

This commit is contained in:
Daniel 2020-01-10 12:52:39 -05:00
parent cabb28c8b0
commit a8f34fb33d
No known key found for this signature in database
GPG Key ID: 08FB2BFC470E75B4
1 changed files with 2 additions and 2 deletions

View File

@ -81,8 +81,8 @@ func main() {
log.Fatalf("Failed to generate private key: %v", err)
}
// Both ECDSA and RSA subject keys should have the DigitalSignature KeyUsage
// bits set in the x509.Certificate template
// ECDSA, ED25519 and RSA subject keys should have the DigitalSignature
// KeyUsage bits set in the x509.Certificate template
keyUsage := x509.KeyUsageDigitalSignature
// Only RSA subject keys should have the KeyEncipherment KeyUsage bits set. In
// the context of TLS this KeyUsage is particular to RSA key exchange and