aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/test/make_certs.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2014-04-10 14:44:57 +0200
committerHans Nilsson <[email protected]>2014-04-23 10:55:28 +0200
commit7a9ac0af28fba4589a1661b9fed9e1d6ef75dd6c (patch)
treeff7a0f81d05968d3ca1f553010c0c7ae05500a9d /lib/ssl/test/make_certs.erl
parent4969c429a9d03c5bafc9633ec186f2fe08b953b8 (diff)
downloadotp-7a9ac0af28fba4589a1661b9fed9e1d6ef75dd6c.tar.gz
otp-7a9ac0af28fba4589a1661b9fed9e1d6ef75dd6c.tar.bz2
otp-7a9ac0af28fba4589a1661b9fed9e1d6ef75dd6c.zip
ssl: Fixes ssl_crl_SUITE errors on mixed ipv6-v4 interfaces
Diffstat (limited to 'lib/ssl/test/make_certs.erl')
-rw-r--r--lib/ssl/test/make_certs.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ssl/test/make_certs.erl b/lib/ssl/test/make_certs.erl
index 0947657ca7..15a7e118ff 100644
--- a/lib/ssl/test/make_certs.erl
+++ b/lib/ssl/test/make_certs.erl
@@ -32,6 +32,7 @@
v2_crls = true,
ecc_certs = false,
issuing_distribution_point = false,
+ crl_port = 8000,
openssl_cmd = "openssl"}).
@@ -57,6 +58,8 @@ make_config([{default_bits, Bits}|T], C) when is_integer(Bits) ->
make_config(T, C#config{default_bits = Bits});
make_config([{v2_crls, Bool}|T], C) when is_boolean(Bool) ->
make_config(T, C#config{v2_crls = Bool});
+make_config([{crl_port, Port}|T], C) when is_integer(Port) ->
+ make_config(T, C#config{crl_port = Port});
make_config([{ecc_certs, Bool}|T], C) when is_boolean(Bool) ->
make_config(T, C#config{ecc_certs = Bool});
make_config([{issuing_distribution_point, Bool}|T], C) when is_boolean(Bool) ->
@@ -423,7 +426,7 @@ ca_cnf(C) ->
"[crl_section]\n"
%% intentionally invalid
"URI.1=http://localhost/",C#config.commonName,"/crl.pem\n"
- "URI.2=http://localhost:8000/",C#config.commonName,"/crl.pem\n"
+ "URI.2=http://localhost:",integer_to_list(C#config.crl_port),"/",C#config.commonName,"/crl.pem\n"
"\n"
"[user_cert_digital_signature_only]\n"