mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Add workaround for Jose 1.11.10 not supporting OTP 28 ecPrivkeyVer1 (#4393)
This commit is contained in:
parent
167bbc768a
commit
363351b18c
1 changed files with 5 additions and 1 deletions
|
@ -318,7 +318,11 @@ read_account_key() ->
|
|||
case pkix:read_file(Path) of
|
||||
{ok, _, KeyMap} ->
|
||||
case maps:keys(KeyMap) of
|
||||
[#'ECPrivateKey'{} = Key|_] -> {ok, Key};
|
||||
[#'ECPrivateKey'{version = ecPrivkeyVer1} = Key|_] ->
|
||||
%% Erlang/OTP 28 generates this, but Jose doesn't support it
|
||||
{ok, Key#'ECPrivateKey'{version = 1}};
|
||||
[#'ECPrivateKey'{} = Key|_] ->
|
||||
{ok, Key};
|
||||
_ ->
|
||||
?WARNING_MSG("File ~ts doesn't contain ACME account key. "
|
||||
"Trying to create a new one...",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue