OpenSSL is an open-source library for SSL and TLS that also provides cryptographic operations such as RSA key generation. For JWTs using asymmetric signatures, it creates a private key for signing and a public key for validation. section 8.2
Generate an RSA key pair
Run `openssl genpkey -algorithm RSA -out private_key.pem -outpubkey public_key.pem -pkeyopt rsa_keygen_bits:3072`. The private key signs PS256 tokens; the public key verifies their signatures. The command selects RSA, names both output files, and sets the key size. section 8.2
openssl genpkey -algorithm RSA -out private_key.pem \ -outpubkey public_key.pem -pkeyopt rsa_keygen_bits:3072
Inspect the complete command used to generate the private and public RSA keys. section 8.2


