diff options
author | Ingela Anderton Andin <ingela@erlang.org> | 2023-03-21 17:43:34 +0100 |
---|---|---|
committer | Ingela Anderton Andin <ingela@erlang.org> | 2023-03-27 16:11:30 +0200 |
commit | 659dad5e7293e4f8a139c78a05a71558e1f7c353 (patch) | |
tree | d181f29f696c28462be14f052b2d270afeb90779 /lib/diameter | |
parent | 37f404078c46f9bdb55cc3087034d751165010ba (diff) | |
download | erlang-659dad5e7293e4f8a139c78a05a71558e1f7c353.tar.gz |
ssl: Remove double assert and fix test cases to handle client defaults to {verify, verify_peer}
Diffstat (limited to 'lib/diameter')
-rw-r--r-- | lib/diameter/test/diameter_tls_SUITE.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/diameter/test/diameter_tls_SUITE.erl b/lib/diameter/test/diameter_tls_SUITE.erl index 1e7f7ed50a..e576da0f6a 100644 --- a/lib/diameter/test/diameter_tls_SUITE.erl +++ b/lib/diameter/test/diameter_tls_SUITE.erl @@ -280,7 +280,7 @@ inband_security(Ids) -> ssl_options(Dir, Base) -> Root = filename:join([Dir, Base]), - [{ssl_options, [{certfile, Root ++ "_ca.pem"}, + [{ssl_options, [{verify, verify_none},{certfile, Root ++ "_ca.pem"}, {keyfile, Root ++ "_key.pem"}]}]. make_cert(Dir, Base) -> @@ -290,7 +290,7 @@ make_cert(Dir, Keyfile, Certfile) -> [KP,CP] = [filename:join([Dir, F]) || F <- [Keyfile, Certfile]], KC = join(["openssl genrsa -out", KP, "2048"]), - CC = join(["openssl req -new -x509 -key", KP, "-out", CP, "-days 7", + CC = join(["openssl req -new -sha256 -x509 -key", KP, "-out", CP, "-days 7", "-subj /C=SE/ST=./L=Stockholm/CN=www.erlang.org"]), %% Hope for the best and only check that files are written. |