Generate an RSA public and private key pair

Generate a matching RSA key pair for local development, testing, and learning. Export the public and private PEM blocks separately, then use them with compatible tooling.

How it works

  1. Choose the available generation options and create a new key pair.
  2. Copy or download the public and private PEM blocks separately.
  3. Keep the private key private and use the public key where encryption or verification is needed.

Capabilities and limits

  • Creates matching public and private RSA PEM key material locally.
  • Lets you export each key for test environments.
  • Generated keys should not be casually committed, pasted into tickets, or treated as a replacement for production key management.

Examples

Local encryption test

1. Generate a key pair
2. Encrypt text with the public PEM
3. Decrypt it with the private PEM

Use this round trip to verify an integration before deploying it.

Inspect a generated key

-----BEGIN PUBLIC KEY-----
…
-----END PUBLIC KEY-----

Paste the exported PEM into the key viewer to check its detected type.

Frequently asked questions

Which key can I share?

The public key is designed to be distributed. The private key must remain confidential.

Are browser-generated keys safe for production?

For production, follow your organization’s key-management, access-control, rotation, and audit requirements.