diff options
author | Loïc Hoguin <[email protected]> | 2017-05-20 19:21:54 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-05-20 19:21:54 +0200 |
commit | 82d91769e79a8cc3dd417d9b98b1ee68151bf1c2 (patch) | |
tree | 23ea4e3fa286876e4b8b8ef02c0f6318d12f6534 | |
parent | adae1012db13f140a136033da7d02d53a4aa2bd9 (diff) | |
download | ct_helper-82d91769e79a8cc3dd417d9b98b1ee68151bf1c2.tar.gz ct_helper-82d91769e79a8cc3dd417d9b98b1ee68151bf1c2.tar.bz2 ct_helper-82d91769e79a8cc3dd417d9b98b1ee68151bf1c2.zip |
Generate keys using RSA instead of DSA
Some software are complaining about bad security when using DSA.
-rw-r--r-- | src/ct_helper.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ct_helper.erl b/src/ct_helper.erl index 460f48f..ef79711 100644 --- a/src/ct_helper.erl +++ b/src/ct_helper.erl @@ -112,8 +112,8 @@ ignore(M, F, A) -> -spec make_certs() -> {CaCert::der_encoded(), Cert::der_encoded(), Key::key()}. make_certs() -> - CaInfo = {CaCert, _} = erl_make_certs:make_cert([{key, dsa}]), - {Cert, {Asn1Type, Der, _}} = erl_make_certs:make_cert([{key, dsa}, {issuer, CaInfo}]), + CaInfo = {CaCert, _} = erl_make_certs:make_cert([{key, rsa}]), + {Cert, {Asn1Type, Der, _}} = erl_make_certs:make_cert([{key, rsa}, {issuer, CaInfo}]), {CaCert, Cert, {Asn1Type, Der}}. %% @doc Create a set of certificates and store them in an ets table. |