From 793c0fe1fa67c02449ab964a1d0f29ee1c8dc6af Mon Sep 17 00:00:00 2001 From: Kelvin Mo Date: Wed, 23 Apr 2025 17:24:42 +1000 Subject: [PATCH 1/2] Update installation instructions for JWKS creation - Update location of jwkstool, which is now separated from the SimpleJWT library - Update requirement to generate a key ID (as reported in simpleid/simpleid#150) --- docs/2/installing.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/2/installing.md b/docs/2/installing.md index da6e850..4379e92 100644 --- a/docs/2/installing.md +++ b/docs/2/installing.md @@ -110,12 +110,12 @@ openssl rsa -in private.pem -out public.pem -pubout ``` The private and public keys, `private.pem` and `public.pem` have to be -converted into separate JSON Web Key Sets. The easiest way of doing this -is to use the `jwkstool` utility that is included with the SimpleJWT library. +converted into separate JSON Web Key Sets. One way of doing this is using +the [`jwkstool`](https://github.com/kelvinmo/jwkstool) utility. ```shell -www/vendor/bin/jwkstool add -c private.json private.pem -www/vendor/bin/jwkstool add -c public.json public.pem +php jwkstool.phar add --generate-id=thumbnail -c private.json private.pem +php jwkstool.phar add --generate-id=thumbnail -c public.json public.pem rm private.pem rm public.pem ``` From 1da105ae149cc4528dd17b49b578f810270d75e8 Mon Sep 17 00:00:00 2001 From: Kelvin Mo Date: Wed, 23 Apr 2025 17:27:43 +1000 Subject: [PATCH 2/2] Update formatting of jwkstool link --- docs/2/installing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/2/installing.md b/docs/2/installing.md index 4379e92..7856d15 100644 --- a/docs/2/installing.md +++ b/docs/2/installing.md @@ -111,7 +111,7 @@ openssl rsa -in private.pem -out public.pem -pubout The private and public keys, `private.pem` and `public.pem` have to be converted into separate JSON Web Key Sets. One way of doing this is using -the [`jwkstool`](https://github.com/kelvinmo/jwkstool) utility. +the [jwkstool utility](https://github.com/kelvinmo/jwkstool). ```shell php jwkstool.phar add --generate-id=thumbnail -c private.json private.pem