Skip to content

Commit c659347

Browse files
authored
fix(jwk) fix EC key dump parameters (#131)
1 parent 8919584 commit c659347

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resty/openssl/auxiliary/jwk.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function _M.dump_jwk(pkey, is_priv)
231231
kty = "EC",
232232
crv = ec_curves_reverse[params.group],
233233
x = b64.encode_base64url(params.x:to_binary()),
234-
y = b64.encode_base64url(params.x:to_binary()),
234+
y = b64.encode_base64url(params.y:to_binary()),
235235
}
236236
if is_priv then
237237
jwk.d = b64.encode_base64url(params.private:to_binary())

0 commit comments

Comments
 (0)