Skip to content

Commit

Permalink
added KeyUsageKeyEncipherment (#1822)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt authored Jan 17, 2024
1 parent 475cd42 commit 851d67c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cert/ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (ca *CA) GenerateAndSignNodeCert(input *NodeCSRInput) (*Certificate, error)
NotAfter: time.Now().Add(expiry),
SubjectKeyId: []byte{1, 2, 3, 4, 6},
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth, x509.ExtKeyUsageServerAuth},
KeyUsage: x509.KeyUsageDigitalSignature,
KeyUsage: x509.KeyUsageDigitalSignature | x509.KeyUsageKeyEncipherment,
}

newPrivKey, err := rsa.GenerateKey(rand.Reader, keysize)
Expand Down

0 comments on commit 851d67c

Please sign in to comment.