From 4ca1010eecd5c13fb8eed4599d928a29b2e51ff6 Mon Sep 17 00:00:00 2001 From: mschexnaydre Date: Tue, 17 Oct 2023 21:53:11 +0000 Subject: [PATCH] Add test with server SignatureScheme --- conn_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/conn_test.go b/conn_test.go index 0df05ac10..dc473baed 100644 --- a/conn_test.go +++ b/conn_test.go @@ -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, },