-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
security: allow separate CA to verify client certificates.
Part of #26630. This PR adds the following optional files in the certs directory: - `client.node.crt` (and associated `.key`): client certificate for the node user - `ca-client.crt`: certificate to verify client certificates This allows for split server/client certificates signed by different CAs. If `ca-client.crt` exists, it is used in the node's server-side TLS.Config CertPool for client certificate verification. Otherwise, we fall back on `ca.crt`. If `client.node.crt` exists, it is used in the node's client-side TLS.Config as the client certificate. Otherwise, we call back on `node.crt`. At load-time, we verify that the certificate to use contains `CN=node` and `ExtendedKeyUsage=ClientAuth`. Other bits in this PR: - add `cockroach cert create-client-ca` command - use client CA to sign client certs if present - show client CA on `cockroach cert list` - show all certs in debug page - metric for client CA and node client expiration times Release note (general change): allow separate CA for client certificates
- Loading branch information
marc
committed
Jul 20, 2018
1 parent
f38e4c7
commit ff877b1
Showing
16 changed files
with
1,097 additions
and
463 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.