Skip to content

Commit

Permalink
Merge pull request #142 from pavledjo/fix-rsa-sign-supported-check
Browse files Browse the repository at this point in the history
Use 'sha256' instead of 'sha' when validating RSA signing supportability
  • Loading branch information
potatosalad committed May 25, 2023
2 parents e0110a1 + ae93b31 commit fb7547c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jose_server.erl
Expand Up @@ -647,7 +647,7 @@ check_rsa_sign(Fallback) ->
future
end,
SignEntries = [begin
case has_rsa_sign(Padding, Legacy, sha) of
case has_rsa_sign(Padding, Legacy, sha256) of
false ->
{{rsa_sign, Padding}, {Fallback, [{rsa_padding, Padding}]}};
{true, Module} ->
Expand Down

0 comments on commit fb7547c

Please sign in to comment.