Skip to content

Commit

Permalink
fix(jwk) fix EC key dump parameters (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion authored Nov 21, 2023
1 parent 8919584 commit c659347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resty/openssl/auxiliary/jwk.lua
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ function _M.dump_jwk(pkey, is_priv)
kty = "EC",
crv = ec_curves_reverse[params.group],
x = b64.encode_base64url(params.x:to_binary()),
y = b64.encode_base64url(params.x:to_binary()),
y = b64.encode_base64url(params.y:to_binary()),
}
if is_priv then
jwk.d = b64.encode_base64url(params.private:to_binary())
Expand Down

0 comments on commit c659347

Please sign in to comment.