SSH Public Key Parser Fingerprint Cert Bits API
Free tier included · CybersecurityEvery team that touches servers eventually writes a script that has to say "what is this key?" — a pasted `~/.ssh/id_ed25519.pub` in a signup form, a column of keys in a CMDB export, an `authorized_keys` file pulled from a jump host. Doing it properly means decoding the base64 wire format, handling RSA/ECDSA/Ed25519/DSA, and reproducing the fingerprints `ssh-keygen` prints. That is fiddly, easy to get subtly wrong, and needs a crypto library in every language you happen to use.
This API does that one job over HTTP. `POST /parse` accepts a single key in any of the formats admins actually paste — an OpenSSH line with optional `authorized_keys` options (`from=`, `command=`, `no-pty`), an RFC 4716 `SSH2 PUBLIC KEY` block, or a PEM PKCS#8/PKCS#1 public key — and returns key type, bit size, curve, SHA256 and MD5 fingerprints, ASCII randomart, the comment, and a ready-made `ssh-keygen -l` line. It also understands FIDO `sk-ssh-ed25519`/`sk-ecdsa` keys and OpenSSH certificates, exposing the certificate type, key id, serial, principals, validity window, critical options, extensions and signing CA. `POST /authorized-keys` takes a whole file, parses line by line, reports per-line errors with line numbers, flags duplicates and weak keys, and skips comments and blank lines.
Who needs it: an onboarding form that validates a user's pasted key before saving it; an inventory job that fingerprints thousands of `authorized_keys` files for drift and duplicate detection; a certificate audit that lists principals and expiry across a fleet; a CI check that rejects deprecated `ssh-dss` or short RSA keys.
Why this one: parsing is entirely offline and stateless — no key generation, no storage, no lookups against external services, so key material never leaves the request. Results line up with `ssh-keygen -l`/`-L`. Honest limits: it does not verify that a key belongs to whoever submitted it, does not check key registration or revocation, and does not accept private keys — public key material only.
Endpoints
| Method | Path | What it does |
|---|---|---|
POST | /parse | Parse one public key (OpenSSH line with optional options, RFC 4716 block or PEM) into type, bits, curve, SHA256/MD5 fingerprints, randomart, comment and warnings; certificates also expose principals, validity, options and CA. Input key is limited to 102400 bytes. |
POST | /authorized-keys | Parse every key line of an authorized_keys (or known_hosts-style key list) file: per-line result or per-line error, duplicate detection, comments and blank lines skipped. Input text is limited to 102400 bytes and 500 lines. |
Quick start
curl -X POST "https://sshkeys.p.rapidapi.com/parse" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: sshkeys.p.rapidapi.com" \
-H "Content-Type: application/json" \
-d '{"key":"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG/g/UAyIEz/j88nM0SMmtywjSu005/UJRsKBVzM/9dU kopilka@example"}'
FAQ
What are the size limits per request?
`POST /parse` accepts a single `key` of at most 102400 bytes; `POST /authorized-keys` accepts `text` of at most 102400 bytes and up to 500 lines. For larger files, split them and send several calls.
Do my keys leave your server or get stored?
No. Parsing is done in-process from the bytes you send: no databases, no request-body logging, no external lookups. Nothing is persisted after the response is returned.
Are the fingerprints the same as `ssh-keygen -l`?
Yes — fingerprints are computed from the key blob itself, and the response includes the ready-made `ssh-keygen -l` line so you can compare directly. The API does not verify ownership, registration or revocation of a key; it only describes the key you gave it.
Can I check a whole `authorized_keys` file in one call?
Yes, with `POST /authorized-keys`. You get a per-line result or per-line error, duplicate detection across the file, and comments/blank lines skipped — up to 500 lines per request.
Try SSH Public Key Parser Fingerprint Cert Bits free
Free tier on every plan. Get an API key and start calling in under a minute.
Open on RapidAPI