Skip to content

Commit

Permalink
Adding client usage extension for server cert (kopeio#305)
Browse files Browse the repository at this point in the history
Signed-off-by: mmerrill3 <[email protected]>
  • Loading branch information
mmerrill3 committed Mar 16, 2020
1 parent cd09bd6 commit 46f67f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tlsconfig/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func GRPCServerConfig(keypairs *pki.Keypairs, myPeerID string) (*tls.Config, err

config := certutil.Config{
CommonName: "etcd-manager-server-" + myPeerID,
Usages: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth},
Usages: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth, x509.ExtKeyUsageClientAuth},
}

keypair, err := keypairs.EnsureKeypair("etcd-manager-server-"+myPeerID, config, ca)
Expand Down

0 comments on commit 46f67f7

Please sign in to comment.