JSON web token is a mechanism where you pass information between multiple entities or services safely and securely. An asymmetric algorithm generates the JWT token for your payload and requires a Public and private key pair. One of the Asymmetric Algorithm is RSA256 which requires public and private keys for JWT token generation and verification. Let’s learn how to generate Public and Private Key for JWT

Approach 1: Online tool to Generate Public and Private JWT keys

We will use an online tool for this. visit the website for generating the keys.

https://acte.ltd/utils/openssl
Website to use JWT public and private keys

You need to select the options from the list and then click on Generate Keys

  • Algorithm: RSA
  • size: 2048
  • Leave the passphrase empty
Select PKCS8 format

After clicking the GENERATE KEYS button click on the PKCS8 format. You will see the public and private keys at the bottom of the screen

Public and Private Key for RSA256 JWT

You can create two files and store each public and private key in separate files.

touch private_key.pem

Store the below data in private_key.pem file

-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCgf5FzsDlpQmsn
mYFUgH5Zmie9i1XvbcPcXKo7RWS8dD6sGvSUA47I0CSi4Q+W+7hHnp9RnNxFWpNz
+/ZZ56bkCBSG0NMcc9j76AV9YkKbeK8DdSGhKji7ZaBxSv1atI6Qdnz2ascgjS6B
nloukHFRDUlpOOj66YXS7uHYNTXla2H69VYvgqA07GlAUKBA3LB7VDGa5irWIRlG
xI/73EsSBpv5T9mrGCFkTurOY27XDzm9bLwXZAwB59RAAwGcHjtDLSsTDLfEx04u
5t+woBbNZ71JRMCtHWmXPNr6i2958BdUFs6kTJTqlhZMZaFfmT2+5Sr7xRQS4tyy
w7xeCCE1AgMBAAECggEAFQRfgazD99qwuYDKhMxGv2kGZzXFzRKsoUCpMhXGOT9n
rZXiDTfiDL3k7kdWiUjxOr+00TUfSx2vTXLjMaa6HgZI2dairoklEuexQFgLrNxC
3ssJ2lbzEucd+Xf+cVBPku9RMduNs9+JBYQ8/vf/PsPkpxjCuYi284ZAoNVm92HB
Xezg6YXp2urMC3GD1lO1rFa6mrbxGRLMzJ6OHk5wV1UvG62psXeAvJ9WQ6FtB1lv
Z/WGM018v56FWhE7+CjC0eQ93DdySvPsYLdoKIBJg4533W8l2CjVfwrjSIiif71d
0Z3u62cDHVhM/rcXjrcejHgrMVEBAn2xh5FpOikOgQKBgQDMdjBS0qGH4EL9a9+4
aMmV8OdOrRJj94bfpbsEUngQ85sUR8HDHHPoXQBgEHvjFL01G5mXWk/2j9ivS2iI
7xSkgV3dIGmp/zrFT3KveaYAzpZ1Y961HqMnsdUBsaKMHvLtIL3QT91Oe8J3iU2V
xVhiAM8o77N/ZMwTtP1x8bk5hQKBgQDI9HIAXirLGzCkJDghiiwpJ+pDWxPqqjlm
sIIn00GLnvD5zAVd4GY67xUut7WICXsKnb17dY5D8nf/Sungnw4nSw4iNBq3UBKM
6SAKwEzkqVNbOpAB6Y7KZryOT0u2qLrG1nb8gAxIv74h7G9/ljxn5ULSksZHyy6W
uFy6mKB/8QKBgBMmNpxrMcnCDUQi6E8jMU4jw+Ywe3p1YmJr6TocZzZfOnUJy3H0
pj5rB2/320KHXLkunpH4WWjkTA0O6Pl6Otq1aw8czAip6N019a3NnOiScLEJ63/X
ILzFAQgplOm+tE3VNTHfaQDCwpHjgCq40vBK1xwkZxFVZW+rEdmsJAbpAoGAXwFy
hEoA4VVRgci94N16U1rTnlSI7gDccngwkLOH4YKbWv3h66gTrPkrgpLH+DDDQxmg
Y6YIRId1w/Se7dtEzb7mR7VqjBAHNSdiRrLzp4eGKTNesgjBwV8g9gb3PLw40ZjD
WE0RgbNlKJSngiJ9HIF/Ph62L2sX85nl/TH7b4ECgYEArZa0IdRvw/Zbu6aKc7SM
alPEC1LXsI4DZTjAuSyrE/A7I/UaBsqwjru1JWT0cFbsMWTI0+hhNgykqsD4mlGh
q97FB53jbol4rTkKRGskAiSn8fEiC/JMN+XbWv7AjMfe9Dv8mhfOl44LcQXvghoB
hmpYYLiidCu4798aiIYNRFA=
-----END PRIVATE KEY-----
touch public_key.pem

Store the below data in public_key.pem

-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoH+Rc7A5aUJrJ5mBVIB+
WZonvYtV723D3FyqO0VkvHQ+rBr0lAOOyNAkouEPlvu4R56fUZzcRVqTc/v2Weem
5AgUhtDTHHPY++gFfWJCm3ivA3UhoSo4u2WgcUr9WrSOkHZ89mrHII0ugZ5aLpBx
UQ1JaTjo+umF0u7h2DU15Wth+vVWL4KgNOxpQFCgQNywe1QxmuYq1iEZRsSP+9xL
Egab+U/ZqxghZE7qzmNu1w85vWy8F2QMAefUQAMBnB47Qy0rEwy3xMdOLubfsKAW
zWe9SUTArR1plzza+otvefAXVBbOpEyU6pYWTGWhX5k9vuUq+8UUEuLcssO8Xggh
NQIDAQAB
-----END PUBLIC KEY-----

With the help of an online tool, you can create different types of keys.

Approach 2: Using OpenSSL for JWT Public and Private Key Generation

OpenSSL must be installed on your machine. Use the below command to generate the private key

openssl genrsa -out ./private_key.pem 4096
  • The genrsa signifies that we want a private key for the RSA Algorithm
  • we are generating 4096-bit keys
  • The private key will be generated in private_key.pem file

The private key file will be generated in the same folder where this command is executed. The content of this file will be

-----BEGIN RSA PRIVATE KEY-----
MIIJKgIBAAKCAgEAsI3vlCjs00/J7y75XR+Z9UminVZSfAJ0+1wZwYM9VP++S+nA
CE3ZBR3/X6ctwRu6KoFGOA7XnNy/XS3568OK8gLeuQ06+FzJZdca1Vre+Emx9h9u
VWvWD5unlO3/qGMY1HufcdNZVhKUZQJdudL9J7MpuQ/sJnboJcdeSJuQ0zXNEDoe
/yB3KinEqAhShWUzNL5J9PFMSqpt+E3rK1l6YCfkNYjmWXPC2vZ4VleFPB+Jzfd0
RMNv/EMoLOYtiNn0xVoP/fUC6WU2Rak7216LMEVOI9iX9oj780PFSzoPmZHd0ijz
/Ht0wj559jMfp6I2LZYn5ED/DLzPHUk31A2GTFErBWLLtBxpCyc1N+YRTeotPFAR
GAaZcVvVgAvMaZX+2iLs/7jlzOL5BQHgFJTTxmy2Ez/rVL5hwtn8T0o2Mnw6t861
P/xQQsa221+m9VDppCD3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jb
KrtV6OSWx3QNC9FWYKx+x560AfwkMjU99bmX9kJz2ZgtpnlUFhMOqp2V789fEKOl
9Js5V1YuYBHbMhQkJGT3BlGLsBvndOKCcM7g5lc0oiHWzMgCxJZeJXt957yOpvqV
8CK9EYMOFKCLlY282QP6hj68JARF1wPR2MMUllhfxymEzU9dB/U5xlIMB7mVBsUf
COUeEDYbs9S34Y7azVXmEOLacqERFyLD4XkCggEAI14r6Ln394vAya6w3jq43LDQ
lABt7IkcV8noweUbjyNUL3tpfdN1xTEk6gS7rSjHuD03agN2+yny3DoPzi1T35dd
YiGXQsitcj8dc2d7nZQArzg1fLfaMz8N8T5F7FmYZQw+K8/tHA5KRq/7xYwai9jC
/7CyvdbCTcBI0/h2WO2xo9HkIf8eoHBzdJcBDRvAQYIoydEfcN4Ri7T5YAneSI+v
Rdh4ZOplCK/d5i7i3IkbVi+SqLEje8o7YGtmGCWKIUjPm3hR2e7en52ZwhBVsKes
75WZx5n3QRdHS2N54PBgYkIcxn5Lx0hcb89xM0bkmJkP85oSxKSQ2wjyzkgxDg==
-----END RSA PRIVATE KEY-----

The public key will be generated using the private key. Use the below command to generate the public key

openssl rsa -in private_key.pem -pubout -outform PEM -out public_key.pem

The public_key.pem file will be generated in the same folder and the content will be

-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAsI3vlCjs00/J7y75XR+Z
9UminVZSfAJ0+1wZwYM9VP++S+nACE3ZBR3/X6ctwRu6KoFGOA7XnNy/XS3568OK
8gLeuQ06+FzJZdca1Vre+Emx9h9uVWvWD5unlO3/qGMY1HufcdNZVhKUZQJdudL9
J7MpuQ/sJnboJcdeSJuQ0zXNEDoe/yB3KinEqAhShWUzNL5J9PFMSqpt+E3rK1l6
YCfkNYjmWXPC2vZ4VleFPB+Jzfd0RMNv/EMoLOYtiNn0xVoP/fUC6WU2Rak7216L
MEVOI9iX9oj780PFSzoPmZHd0ijz/Ht0wj559jMfp6I2LZYn5ED/DLzPHUk31A2G
TFErBWLLtBxpCyc1N+YRTeotPFARGAaZcVvVgAvMaZX+2iLs/7jlzOL5BQHgFJTT
xmy2Ez/rVL5hwtn8T0o2Mnw6t861P/xQQsa221+m9VDppCD3Ea0b3q9owKvbvZcv
iNupKcCqlnwLT8KL1fK6JdoamqkmGM8oOzR+JgoHDNFlW7e5jnBKbZ8x+6WJitK/
/XN8/oo4cR/W4ytwBFWvbOXwnAcz9KI0JJ3hXIJV65HKlf8Bu6wHHSmWti+Uckau
7IR5PfZ+gxp0poLRG+GS7dQeLvqFiG5Dh0YliRLFZH1d91hNjiwTqhLDvjatyv0z
Yku07BcrVdfIHBor7egmCJMCAwEAAQ==
-----END PUBLIC KEY-----

Approach 3: ssh-keygen for JWT Public and private key generation

ssh-keygen must be installed on your machine. Use the below command to generate the private key

ssh-keygen -t rsa -b 4096 -m PEM -f private_key.pem

The prompt will ask for a passphrase. You can make your key more secure by entering a passphrase or keeping it empty.

ssh-keygen for JWT public and private key

The private key will be created in the same folder where the command is executed and the content will be

-----BEGIN RSA PRIVATE KEY-----
MIIJKAIBAAKCAgEAxs70Aw4Et2YDRcyA17Dju5DyIL7OA0b3+Ysghx/S8+SUQ4fh
esh3fsOFEMC3o67kc1ZVFf2IECDmVHJMVIYhCCbNm28w8Y1lic9N04ySitPjEUHM
bN/rBD62GxByeTVbn3K6g8FdTexMYGyLpzZTccWnwJHR5R376t4VxE+JJa5qNJ9w
Zuzfr94lNjzco7Xde6CIGiQsHGGBoOd0g3mld4pu6SiBsbAwbLEs7nwvY1b/JnVg
vWUb2pKqnORhHoF1D0tL07oNYJ84a4FyBYvxXXj2mb5G4lCgCh6IwZSaDfA7v0Hy
X4Cgm15QHYn6EZ2TycjUyeSWIFZNWsIMUxvPoCb/ncBLee3FZy/c8KAG+/eHkA3w
+x64mlqrPfKPsG9MlAkSmIm9ZLVdPyu/0rRjuGVKuL2MUOEapKHtZv19y9FrMccj
/xHN/2b53pS4Xy5qTZe/UjS42W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9/vOPlC2Sp5A0DpUh5F0U5JZfsO2hIHF
QQgH4HuOqmGDfINoD+EPk1yLcZJnXkrRS2iulS0hUhUhXA/MMDBP060Te722MFI9
+L7B4AdBPI5oJS/U+2Hoj+/jFViXwk4u/W6YKn1qUgkONT9Ux8P7GB9oZMUIFiKY
E1knHEx6y8UcQOsVtFcu14sqMjKQg4uBAoIBAHJR6izbS7JCxONv3FcHGoC3SIjz
NcnlifBJRYzYDX4Crqf0Sk/lCTbGAcSbLDBasQMYey888tInsNylLwnRkXnbBe2f
5H0/zf93l1UH5SHktZGZij80o9Ez+N27x/W0QnPIb/qWhTFGsPu6EmgK12Xhh47f
fPJDiLArfGTXlbbjiJwATvd6uq5V4/TRSBNj28kHnxhBLNLSTkJoGkBRma+xTN39
qb326yldzTIBiOR+U5gkwuFHEVafxNg7vnOkZC+C3vInKMZRfCxmUuBwJXRNqagg
aVJnOQu6E1cNglrtqg4FeZ5EJ2MTt9O0QiKlKMcs/QbPcum3iiEEqy6aRrY=
-----END RSA PRIVATE KEY-----

Use the below command with the generated private key to generate the public key

ssh-keygen -f private_key.pem -e -m PKCS8 > public_key.pem

The contents of the public key will be

-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAmH1xRhvIhim0J8Z4hIR+
ibRDaj/a3SvhWeg+9GhX7nULcKWcI7DCAU0kkOr9FFwABEB4ALz3trDOf+sueU2c
s5gqXsFMAX+RC4AP4NzWB7hl8bHNXrLjOTvvpNKc3KfzIB0ido//T7+xLf7PwmSp
0BWPwzuAfzSHfveOIrcHjLWCG0Dw8WBUQ+FgLy0ja/Rd3O1P7JkbTh8Hj7Lt8qSP
NhCqUgn76xgBkBjvIZk8xicOpqHcKBd7FE7swDRqX7ZVkwIeAgVUS+fuFIke3OQX
1mrbIUuDHaej1gC32qfGq12tUTZiux0mg51DnYFaOy7CBy7mDTnQWaOj5eqTkUEy
CxGmgbGKQsJDFo/n873P95FY9XicYpZmeqLiKaDjRakdNk9XWMf9LxJ/ShWNQjCX
AeA7mlR+JkKOh5hNDXhybj06k2CpnzOwzYst+bhRA1WJTy3NX47T42OZ8f9bN1zJ
DMK+voSrvyNcUCAhtVpvaHcws+6yBW72x4qRMqf4F4910vmlBr4CGluQX83Nta79
csguiVIZOYnYtD6XlTxQWDwnzjFQqcv6HQUHmvBnAyGuga7Sd4bG9KbP4QGfqR2G
CT4Z9+JX5Ar3TVN29FsPD8XmyVPKqi7a5RnZtUN9GXnLxu0W4sRNhIyBQTMXJWa6
WoaZVZIfVY02t0c7QLDG98cCAwEAAQ==
-----END PUBLIC KEY-----

These are the different ways in which JWT private an public key is generated

References

Leave a Reply

Your email address will not be published. Required fields are marked *