Skip to content

Instantly share code, notes, and snippets.

@acominotto
Last active December 11, 2023 07:06
Show Gist options
  • Save acominotto/10de11c32a0078a3093ddd93a429b61e to your computer and use it in GitHub Desktop.
Save acominotto/10de11c32a0078a3093ddd93a429b61e to your computer and use it in GitHub Desktop.
gen token
openssl genpkey -out rsakey.pem -algorithm RSA -pkeyopt rsa_keygen_bits:2048
openssl pkey -in rsakey.pem -pubout -out rsapubkey.pem
cat rsakey.pem
cat rsapubkey.pem
## then encode to base64 to store in .env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment