Skip to content

Commit

Permalink
Add creating a certificate instructions to README (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelneff authored May 27, 2024
1 parent 9222cf2 commit 3e1a7a8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,19 @@ const verifier = createVerifier({
})
```
## Creating a certificate
Many different algorithms are supported and appropriate certificates can be created through various external applications. Here is one example to create RSA certificates with `openssl`.
```bash
PRIVATE_PEM="./jwt-private.pem"
PUBLIC_PEM="./jwt-public.pem"

ssh-keygen -t rsa -b 2048 -m PEM -f "$PRIVATE_PEM" -q -N ""
openssl rsa -in "$PRIVATE_PEM" -pubout -outform PEM -out "$PUBLIC_PEM" 2>/dev/null
rm "$PRIVATE_PEM.pub"
```
## Algorithms supported
This is the lisf of currently supported algorithms:
Expand Down

0 comments on commit 3e1a7a8

Please sign in to comment.