When you register the public key with Auth0, you must provide the public key encoded in PEM format. You may provide this as an X.509 certificate encoded in PEM format. Auth0 enforces a minimum RSA key size of 2048 bits and a maximum key size of 4096 bits. We recommend using OpenSSL to generate a 2048-bit RSA key pair.Documentation Index
Fetch the complete documentation index at: https://docs-staging.auth0-mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
- Generate a private key and a public key in PEM. You should safeguard the private key and never share it, not even with Auth0:
openssl genrsa -out test_key.pem 2048
- Extract the public key in PEM format using the following command. This command extracts the public key details so it can be safely shared without revealing the details of the private key:
openssl rsa -in test_key.pem -outform PEM -pubout -out test_key.pem.pub
The example below shows the contents of the test_key.pem.pub PEM file:
- Save the PEM file. You will need the key contents in other application configuration steps.