]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: ssl: add the same cert for client/server
authorWilliam Lallemand <wlallemand@haproxy.org>
Mon, 20 Jun 2022 16:01:30 +0000 (18:01 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 20 Jun 2022 16:06:43 +0000 (18:06 +0200)
Add the same certificate in server and bind line so we can try to catch
problems like in issue #1748 when updating over the CLI.

reg-tests/ssl/set_ssl_cafile.vtc
reg-tests/ssl/set_ssl_cert.vtc

index c9dbf7490e10ba7e6481ea5a91aee72371cf1e41..bda620f4e42decfe31d13e1bf27b16be5916963e 100644 (file)
@@ -43,6 +43,8 @@ haproxy h1 -conf {
 
     listen clear-lst
         bind "fd@${clearlst}"
+       # dummy bind used to test a change when the same crt is used as server and bind
+        bind "fd@${foobarlst}" ssl crt ${testdir}/set_cafile_client.pem ca-file ${testdir}/set_cafile_interCA1.crt verify none
         server s1 "${tmpdir}/ssl.sock" ssl crt ${testdir}/set_cafile_client.pem ca-file ${testdir}/set_cafile_interCA1.crt verify none
 
     listen clear-verified-lst
index 100d34323fa87c9517c0465b87c4874c8d9424ce..a0fe5e7339531a7a857c37c857634121a733ded3 100644 (file)
@@ -69,6 +69,8 @@ haproxy h1 -conf {
     listen ssl-lst
         bind "${tmpdir}/ssl.sock" ssl crt ${testdir}/common.pem strict-sni
         server s1 ${s1_addr}:${s1_port}
+       # dummy server used to test a change when the same crt is used as server and bind
+        server s2 ${s1_addr}:${s1_port} ssl crt ${testdir}/common.pem verify none weight 0
 
     listen other-ssl-lst
         bind "${tmpdir}/other-ssl.sock" ssl crt-list ${testdir}/set_default_cert.crt-list