Skip to content

Commit 8d71686

Browse files
Fix OpenSSL interop test
Set SNI
1 parent ca0bb87 commit 8d71686

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/openssl-interop.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,22 +90,22 @@ run_bertie() {
9090
bertie_server_test() {
9191
echo "Running Bertie Server with ECDSA P256 certificate | Chacha20Poly1305 x25519"
9292
run_bertie p256 SHA256_Chacha20Poly1305_EcdsaSecp256r1Sha256_X25519
93-
openssl s_client -curves X25519 -connect localhost:6443 </dev/null
93+
openssl s_client -curves X25519 -connect localhost:6443 -servername localhost </dev/null
9494
kill $pid
9595

9696
echo "Running Bertie Server with ECDSA P256 certificate | Chacha20Poly1305 P256"
9797
run_bertie p256 SHA256_Chacha20Poly1305_EcdsaSecp256r1Sha256_P256
98-
openssl s_client -curves P-256 -connect localhost:6443 </dev/null
98+
openssl s_client -curves P-256 -connect localhost:6443 -servername localhost </dev/null
9999
kill $pid
100100

101101
echo "Running Bertie Server with RSA PSS certificate | Chacha20Poly1305 x25519"
102102
run_bertie rsa SHA256_Chacha20Poly1305_RsaPssRsaSha256_X25519
103-
openssl s_client -curves X25519 -connect localhost:6443 </dev/null
103+
openssl s_client -curves X25519 -connect localhost:6443 -servername localhost </dev/null
104104
kill $pid
105105

106106
echo "Running Bertie Server with RSA PSS certificate | Chacha20Poly1305 P256"
107107
run_bertie rsa SHA256_Chacha20Poly1305_RsaPssRsaSha256_P256
108-
openssl s_client -curves P-256 -connect localhost:6443 </dev/null
108+
openssl s_client -curves P-256 -connect localhost:6443 -servername localhost </dev/null
109109
kill $pid
110110
}
111111

0 commit comments

Comments
 (0)