Commit 89527b47 authored by Clément OUDOT's avatar Clément OUDOT
Browse files

Use Base64 URL for JWKS data (#1097)

parent 403f08d3
......@@ -1374,8 +1374,8 @@ sub key2jwks {
my $rsa_pub = Crypt::OpenSSL::RSA->new_public_key($key);
my @params = $rsa_pub->get_key_parameters();
$hash->{n} = encode_base64( $params[0]->to_bin(), "" );
$hash->{e} = encode_base64( $params[1]->to_bin(), "" );
$hash->{n} = encode_base64url( $params[0]->to_bin(), "" );
$hash->{e} = encode_base64url( $params[1]->to_bin(), "" );
return $hash;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment