Skip to content

Commit

Permalink
Add test with server SignatureScheme
Browse files Browse the repository at this point in the history
  • Loading branch information
mschexnaydre committed Oct 17, 2023
1 parent 9df96db commit 4ca1010
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -864,10 +864,17 @@ func TestClientCertificate(t *testing.T) {
ClientAuth: RequireAnyClientCert,
},
},
"RequestClientCert_cert_sigscheme": { // specify signature algorithm
clientCfg: &Config{RootCAs: srvCAPool, Certificates: []tls.Certificate{cert}},
serverCfg: &Config{
SignatureSchemes:[]tls.SignatureScheme{tls.ECDSAWithP521AndSHA512},
Certificates: []tls.Certificate{srvCert},
ClientAuth: RequestClientCert,
},
},
"RequestClientCert_cert": {
clientCfg: &Config{RootCAs: srvCAPool, Certificates: []tls.Certificate{cert}},
serverCfg: &Config{
SignatureSchemes:[]tls.SignatureScheme{tls.ECDSAWithP521AndSHA512},
Certificates: []tls.Certificate{srvCert},
ClientAuth: RequestClientCert,
},
Expand Down

0 comments on commit 4ca1010

Please sign in to comment.