๐RSA Key Pair Generator & PKCS#8 / SPKI Exporter Documentation & Guide
๐How to Generate RSA Key Pairs
- Select Modulus Length: Choose between 2048-bit (standard production speed), 3072-bit (NIST recommended through 2030+), or 4096-bit (long-term root CA and archival security).
- Choose Cryptographic Primitive & Hash: Select your intended cryptographic usage: RSASSA-PKCS1-v1_5 or RSA-PSS for digital signatures, or RSA-OAEP for asymmetric encryption, paired with SHA-256 or SHA-512.
- Generate In-Browser: Click โก Generate New RSA Key Pair. Web Crypto API computes distinct mathematical primes on your device in milliseconds.
- Copy & Download PEM Files: Copy the PKCS#8 private key and SPKI public key to your clipboard or download them as .pem and .pub files.
โ๏ธRSA Mathematical Architecture & PEM Encoding
RSA security relies on the hardness of factoring large composite semiprime integers n = p * q:
Always store private keys with strict 600 filesystem permissions and never commit private keys into version control.
๐กPractical RSA Key Pair Use Cases
- Generating RS256 private/public key pairs for signing and verifying OAuth 2.0 / OpenID Connect JSON Web Tokens (JWT).
- Creating RSA public-key test fixtures for API gateway authorization and webhook verification.
- Developing mock TLS certificate authorities and client certificate authentication pipelines in local development.