aboutsummaryrefslogtreecommitdiff
path: root/src/ejabberd_acme.erl
diff options
context:
space:
mode:
authorKonstantinos Kallas <konstantinos.kallas@hotmail.com>2017-08-22 10:25:37 +0300
committerKonstantinos Kallas <konstantinos.kallas@hotmail.com>2017-08-22 10:25:37 +0300
commit10f7b5a548a9a38c9c98e52a99b4af510f794884 (patch)
treed8f0a71634c26a4680627f90b3485557333ec79f /src/ejabberd_acme.erl
parentAdd certfile when acquired (diff)
Remove partial RSA key support
Diffstat (limited to '')
-rw-r--r--src/ejabberd_acme.erl20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/ejabberd_acme.erl b/src/ejabberd_acme.erl
index 869ecf03f..952a8cb85 100644
--- a/src/ejabberd_acme.erl
+++ b/src/ejabberd_acme.erl
@@ -730,18 +730,6 @@ not_before_not_after() ->
-spec to_public(jose_jwk:key()) -> jose_jwk:key().
to_public(PrivateKey) ->
jose_jwk:to_public(PrivateKey).
-%% case jose_jwk:to_key(PrivateKey) of
-%% #'RSAPrivateKey'{modulus = Mod, publicExponent = Exp} ->
-%% Public = #'RSAPublicKey'{modulus = Mod, publicExponent = Exp},
-%% jose_jwk:from_key(Public);
-%% _ ->
-%% jose_jwk:to_public(PrivateKey)
-%% end.
-
-%% to_public(#'RSAPrivateKey'{modulus = Mod, publicExponent = Exp}) ->
-%% #'RSAPublicKey'{modulus = Mod, publicExponent = Exp};
-%% to_public(PrivateKey) ->
-%% jose_jwk:to_public(PrivateKey).
-spec pem_to_certificate(pem()) -> #'Certificate'{}.
pem_to_certificate(Pem) ->
@@ -1054,16 +1042,8 @@ get_config_cert_dir() ->
end.
--ifdef(GENERATE_RSA_KEY).
-generate_key() ->
- Key = public_key:generate_key({rsa, 2048, 65537}),
- Key1 = Key#'RSAPrivateKey'{version = 'two-prime'},
- jose_jwk:from_key(Key1).
-%% jose_jwk:generate_key({rsa, 2048}).
--else.
generate_key() ->
jose_jwk:generate_key({ec, secp256r1}).
--endif.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%