Skip to content
PithLab

↑↓ to move · Enter to open · Esc to close

Key Pair Generator API

Generate one new signing key pair (ECDSA, Ed25519 or RSA up to 4096 bits): PKCS#8 private key PEM, SPKI public key PEM, OpenSSH public key line and SHA-256 fingerprint. The key is created on PithLab's server and not stored; generate locally for production secrets.

POST /api/v1/tools/key-pair-generatorMCP key_pair_generatorSecurity & PrivacyRandom output

Generate RSA, ECDSA and Ed25519 key pairs in your browser. Export the private key as PKCS#8 PEM, the public key as PEM and OpenSSH, with its SHA256 fingerprint.

Input

Send these as a JSON object. Unknown fields are rejected.

algorithm
Key type. ed25519 or ecdsa-p256 for modern SSH/JWT use; rsa-pkcs1-* for RS256 and older systems; rsa-pss-* for PS256. (string, one of ecdsa-p256, ecdsa-p384, ecdsa-p521, ed25519, rsa-pss-2048, rsa-pss-3072, rsa-pss-4096, rsa-pkcs1-2048, rsa-pkcs1-3072, rsa-pkcs1-4096, default "ed25519")
comment
Comment appended to the OpenSSH public key line, e.g. ada@laptop. (string, up to 200 characters, default "")
curl https://pithlab.com/api/v1/tools/key-pair-generator \n  -H "Authorization: Bearer $PITHLAB_KEY" \n  -H "Content-Type: application/json" \n  -d '{"algorithm":"ed25519","comment":"deploy@ci"}'