mirror of https://github.com/golang/go.git
crypto/tls: fix generate_cert.go comment RE: keyUsage
This commit is contained in:
parent
cabb28c8b0
commit
a8f34fb33d
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue