diff options
author | Loïc Hoguin <[email protected]> | 2024-03-14 15:41:30 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2024-03-14 15:41:30 +0100 |
commit | 8b5f1609faffcf1166ca54c08df4ca9216c51993 (patch) | |
tree | 8360c67d59714c1641764debc2c074e4eaa90604 /test/rfc7231_SUITE.erl | |
parent | 5e177270a2be530bbec55381d0fe66a252c3a998 (diff) | |
download | gun-8b5f1609faffcf1166ca54c08df4ca9216c51993.tar.gz gun-8b5f1609faffcf1166ca54c08df4ca9216c51993.tar.bz2 gun-8b5f1609faffcf1166ca54c08df4ca9216c51993.zip |
Use public_key:cacerts_get/0 when possible
Also "fix" many TLS test failures due to yet more changes
in the default options for TLS.
Also small changes to make Dialyzer happy.
Diffstat (limited to 'test/rfc7231_SUITE.erl')
-rw-r--r-- | test/rfc7231_SUITE.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/rfc7231_SUITE.erl b/test/rfc7231_SUITE.erl index a5e1fe5..f3a780e 100644 --- a/test/rfc7231_SUITE.erl +++ b/test/rfc7231_SUITE.erl @@ -55,7 +55,8 @@ do_proxy_init(Parent, Transport, Status, ConnectRespHeaders, Delay, ConnectRespV gen_tcp:listen(0, [binary, {active, false}]); gun_tls -> Opts = ct_helper:get_certs_from_ets(), - ssl:listen(0, [binary, {active, false}|Opts]) + ssl:listen(0, [binary, {active, false}, {verify, verify_none}, + {fail_if_no_peer_cert, false}|Opts]) end, {ok, {_, Port}} = Transport:sockname(ListenSocket), Parent ! {self(), Port}, |