summaryrefslogtreecommitdiffstats
path: root/src/ct_helper.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ct_helper.erl')
-rw-r--r--src/ct_helper.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ct_helper.erl b/src/ct_helper.erl
index 23ae693..d572d68 100644
--- a/src/ct_helper.erl
+++ b/src/ct_helper.erl
@@ -26,6 +26,5 @@
-> {CaCert::der_encoded(), Cert::der_encoded(), Key::key()}.
make_certs() ->
CaInfo = {CaCert, _} = erl_make_certs:make_cert([{key, dsa}]),
- {Cert, Key0} = erl_make_certs:make_cert([{key, dsa}, {issuer, CaInfo}]),
- Key = erlang:delete_element(3, Key0),
- {CaCert, Cert, Key}.
+ {Cert, {Asn1Type, Der, _}} = erl_make_certs:make_cert([{key, dsa}, {issuer, CaInfo}]),
+ {CaCert, Cert, {Asn1Type, Der}}.