API reference

Key and certificate fingerprints

Fingerprint SSH keys, X.509 certificates, SPKI public keys, and OpenPGP keys.

GETPOST/api/fingerprintMCP tool fingerprint

Finds every public key in input and returns its fingerprints in the formats other tools print. SSH: ssh-keygen -l SHA256 and MD5. Certificates: openssl x509 -fingerprint SHA-1 and SHA-256 over the DER, plus the RFC 7469 SPKI pin. PEM public keys: SHA-256 over the SubjectPublicKeyInfo. Where an equivalent exists, the SSH fingerprint of the same key is included, so you can confirm that a certificate and an SSH key share a key. OpenPGP: v4 (SHA-1) and v6 (SHA-256) fingerprints and key IDs for the primary key and subkeys. Private keys are refused. Every key and certificate is also checked against the keys compromised in the October 2026 eMudhra (emSign) incident (all eight intermediate CA keys, whose private keys are public, and the emSign ECC Root CA - G3 removed from browser trust stores), and a certificate signed by one of them is flagged after verifying the signature with that key. NIST-curve EC keys are also searched for a tiny private value (the eMudhra failure mode), so a key with that weakness is caught even if it is on no list: the API tries private values 1 to 256 and their negations; the web page tries every value below 2^32.

Browser version (runs locally): Fingerprints.

Try it

Credentials
Remember these credentials

Not saved: you will paste them again next time.

No credentials yet? Get a client ID and secret. They are sent only to this site, in an Authorization: Basic header.

POST /api/fingerprint with a JSON body

Parameters

ParameterTypeDefaultDescription
inputrequiredstring—One or more SSH public key lines, RFC 4716 blocks, PEM CERTIFICATE / PUBLIC KEY blocks, or an armored PGP public key block.

Also accepted on every endpoint: format (json | text). Parameters may come from the query string, a JSON object body, an urlencoded or multipart form, or (for input) a text/plain body.

Global parameters
ParameterTypeDefaultDescription
formatjson | textjsonjson returns the documented object. text returns only the primary value as text/plain (see "Text output").

Response 200 application/json

FieldTypeDescription
itemsarray of one of (by kind)Keys found, in input order by format.
items[] (kind = "ssh")variantSSH public key.
items[].typestringKey type, e.g. ssh-ed25519.
items[].bitsinteger | nullKey size.
items[].commentstringTrailing comment, often user@host.
items[].sshobject
items[].ssh.sha256stringSHA256: + unpadded Base64, as printed by ssh-keygen -l.
items[].ssh.md5stringMD5: + colon hex, as printed by ssh-keygen -E md5 -l.
items[].advisoriesarray of objectKey trust advisories: known compromised or distrusted keys (the October 2026 eMudhra/emSign compromise), certificates they signed (confirmed by verifying the signature), and EC keys whose private value is tiny. Empty when nothing was found.
items[].advisories[].code"compromised-key" | "signed-by-compromised-key" | "distrusted-root" | "issued-by-distrusted-root" | "compromised-ca-parent" | "weak-private-key"What was found.
items[].advisories[].severity"critical" | "high" | "warning"critical: anyone can sign as this key. high: browsers no longer trust it. warning: context.
items[].advisories[].messagestringPlain-language explanation.
items[].advisories[].keystring | nullName of the known key involved, e.g. EM OV TLS CA - G3C.
items[].advisories[].incidentstring | nullIncident identifier, e.g. emudhra-2026-10.
items[].advisories[].referencesarray of stringPublic sources.
items[] (kind = "certificate")variantX.509 certificate.
items[].subjectstringSubject DN.
items[].sha1stringSHA-1 of DER, colon hex.
items[].sha256stringSHA-256 of DER, colon hex.
items[].spkiSha256stringRFC 7469 pin.
items[].sshobject | null
items[].ssh.sha256stringSHA256: + unpadded Base64, as printed by ssh-keygen -l.
items[].ssh.md5stringMD5: + colon hex, as printed by ssh-keygen -E md5 -l.
items[].advisoriesarray of objectKey trust advisories: known compromised or distrusted keys (the October 2026 eMudhra/emSign compromise), certificates they signed (confirmed by verifying the signature), and EC keys whose private value is tiny. Empty when nothing was found.
items[].advisories[].code"compromised-key" | "signed-by-compromised-key" | "distrusted-root" | "issued-by-distrusted-root" | "compromised-ca-parent" | "weak-private-key"What was found.
items[].advisories[].severity"critical" | "high" | "warning"critical: anyone can sign as this key. high: browsers no longer trust it. warning: context.
items[].advisories[].messagestringPlain-language explanation.
items[].advisories[].keystring | nullName of the known key involved, e.g. EM OV TLS CA - G3C.
items[].advisories[].incidentstring | nullIncident identifier, e.g. emudhra-2026-10.
items[].advisories[].referencesarray of stringPublic sources.
items[] (kind = "public-key")variantPEM SubjectPublicKeyInfo.
items[].algorithmstringKey algorithm.
items[].spkiSha256HexstringSHA-256 of the SPKI DER, colon hex.
items[].spkiSha256stringRFC 7469 pin.
items[].sshobject | null
items[].ssh.sha256stringSHA256: + unpadded Base64, as printed by ssh-keygen -l.
items[].ssh.md5stringMD5: + colon hex, as printed by ssh-keygen -E md5 -l.
items[].advisoriesarray of objectKey trust advisories: known compromised or distrusted keys (the October 2026 eMudhra/emSign compromise), certificates they signed (confirmed by verifying the signature), and EC keys whose private value is tiny. Empty when nothing was found.
items[].advisories[].code"compromised-key" | "signed-by-compromised-key" | "distrusted-root" | "issued-by-distrusted-root" | "compromised-ca-parent" | "weak-private-key"What was found.
items[].advisories[].severity"critical" | "high" | "warning"critical: anyone can sign as this key. high: browsers no longer trust it. warning: context.
items[].advisories[].messagestringPlain-language explanation.
items[].advisories[].keystring | nullName of the known key involved, e.g. EM OV TLS CA - G3C.
items[].advisories[].incidentstring | nullIncident identifier, e.g. emudhra-2026-10.
items[].advisories[].referencesarray of stringPublic sources.
items[] (kind = "pgp")variantOpenPGP public key.
items[].userIdsarray of stringUser IDs (not verified against self-signatures).
items[].keysarray of objectPrimary key and subkeys.
items[].keys[].role"primary" | "subkey"primary or subkey.
items[].keys[].versionintegerKey packet version (4, 5 or 6).
items[].keys[].fingerprintstringUppercase hex fingerprint.
items[].keys[].groupedstringFingerprint in groups of four, as GnuPG prints it.
items[].keys[].keyIdstringKey ID: last 8 bytes (v4) or first 8 bytes (v5/v6) of the fingerprint.
items[].keys[].algorithmstringPublic key algorithm.
items[].keys[].bitsinteger | nullKey size.
items[].keys[].createdstringKey creation time, ISO 8601.
items[].advisoriesarray of objectKey trust advisories: known compromised or distrusted keys (the October 2026 eMudhra/emSign compromise), certificates they signed (confirmed by verifying the signature), and EC keys whose private value is tiny. Empty when nothing was found.
items[].advisories[].code"compromised-key" | "signed-by-compromised-key" | "distrusted-root" | "issued-by-distrusted-root" | "compromised-ca-parent" | "weak-private-key"What was found.
items[].advisories[].severity"critical" | "high" | "warning"critical: anyone can sign as this key. high: browsers no longer trust it. warning: context.
items[].advisories[].messagestringPlain-language explanation.
items[].advisories[].keystring | nullName of the known key involved, e.g. EM OV TLS CA - G3C.
items[].advisories[].incidentstring | nullIncident identifier, e.g. emudhra-2026-10.
items[].advisories[].referencesarray of stringPublic sources.

Errors

Errors are JSON: {"error": "<message>", "code": "<code>", "param": "<name>"?}.

StatusCodeWhen
422unprocessable_inputNo public key is found, a key is malformed, or the input contains a private key (which is refused without being parsed).
400missing_parameterA required parameter is absent.
400unknown_parameterA parameter name is not in the table above (typos are rejected, not ignored).
400invalid_parameterA value has the wrong type, is out of range, or is not an allowed value.
413payload_too_largeThe request body exceeds 1 MiB.
405method_not_allowedA method other than GET, POST or OPTIONS.

Behaviour

  • Idempotent: the same arguments always return the same result.
  • Requires a client ID and secret (authentication). Each call is recorded as one metadata row against your client ID; inputs and outputs are never stored or logged. Responses carry cache-control: no-store.
  • CORS: any origin may call this endpoint from a browser, using your credentials.

Examples

Responses below were produced by running each request through this code at build time. Long strings are shortened.

SSH public key

curl -X POST 'https://util.caruana.me/api/fingerprint' \
  -H 'content-type: application/json' \
  -d '{"input":"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHGVluSiNj6bqXsllRWYUFXc2JNxW9mDP9PntMYyVHeM me@host"}'

Response 200

{
  "items": [
    {
      "kind": "ssh",
      "type": "ssh-ed25519",
      "bits": 256,
      "comment": "me@host",
      "ssh": {
        "sha256": "SHA256:z/6pzDuxOun5oze7jd1IYwPEPvElvGHF6E/heDuWjEo",
        "md5": "MD5:ed:33:28:56:1e:c6:f6:47:f4:4d:d0:da:97:32:18:ff"
      },
      "advisories": []
    }
  ]
}
Same call as an MCP tools/call
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "fingerprint",
    "arguments": {
      "input": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHGVluSiNj6bqXsllRWYUFXc2JNxW9mDP9PntMYyVHeM me@host"
    }
  }
}

OpenPGP v6 key (RFC 9580 sample)

curl -X POST 'https://util.caruana.me/api/fingerprint' \
  -H 'content-type: application/json' \
  -d '{"input":"-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nxioGY4d/4xsAAAAg+U2nu0jWCmHlZ3BqZYfQMxmZu52JGggkLq2EVD34laPCsQYf\nGwoAAABCBYJjh3/jAwsJBwUVCg4IDAIWAAKbAwIeCSIhBssYbE8GCaaX5NUt+mxy\nKwwfHifBilZwj2Ul7Ce62azJBScJAgcCAAAAAK0oIBA+LX0ifsDm185Ecds2v8lw\ngyU2kCcUmKfvBXbAf6rhRYWzuQOwEn7E/aLwIwRaLsdry0+VcallHhSu4RN6HWaE\nQsiPlR4zxP/TP7mhfVEe7XWPxtnMUMtf15OyA51YBM4qBmOHf+MZAAAAIIaTJINn\n+eUBXbki+PSAld2nhJh/LVmFsS+60WyvXkQ1wpsGGBsKAAAALAWCY4d/4wKbDCIh\nBssYbE8GCaaX5NUt+mxyKwwfHifBilZwj2Ul7Ce62azJAAAAAAQBIKbpGG2dWTX8\nj+VjFM21J0hqWlEg+bdiojWnKfA5AQpWUWtnNwDEM0g12vYxoWM8Y81W+bHBw805\nI8kWVkXU6vFOi+HWvv/ira7ofJu16NnoUkhclkUrk0mXubZvyl4GBg==\n-----END PGP PUBLIC KEY BLOCK-----\n"}'

Response 200

{
  "items": [
    {
      "kind": "pgp",
      "userIds": [],
      "keys": [
        {
          "role": "primary",
          "version": 6,
          "fingerprint": "CB186C4F0609A697E4D52DFA6C722B0C1F1E27C18A56708F6525EC27BAD9ACC9",
          "keyId": "CB186C4F0609A697",
          "algorithm": "Ed25519",
          "bits": 256,
          "created": "2022-11-30T16:08:03.000Z",
          "grouped": "CB18 6C4F 0609 A697 E4D5 2DFA 6C72 2B0C 1F1E 27C1 8A56 708F 6525 EC27 BAD9 ACC9"
        },
        {
          "role": "subkey",
          "version": 6,
          "fingerprint": "12C83F1E706F6308FE151A417743A1F033790E93E9978488D1DB378DA9930885",
          "keyId": "12C83F1E706F6308",
          "algorithm": "X25519",
          "bits": 256,
          "created": "2022-11-30T16:08:03.000Z",
          "grouped": "12C8 3F1E 706F 6308 FE15 1A41 7743 A1F0 3379 0E93 E997 8488 D1DB 378D A993 0885"
        }
      ],
      "advisories": []
    }
  ]
}
Same call as an MCP tools/call
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "fingerprint",
    "arguments": {
      "input": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nxioGY4d/4xsAAAAg+U2nu0jWCmHlZ3BqZYfQMxmZu52JGggkLq2EVD34laPCsQYf\nGwoAAABCBYJjh3/jAwsJBwUVCg4IDAIWAAKbAwIeCSIhBssYbE8GCaaX5NUt+mxy\nKwwfHifBilZwj2Ul7Ce62azJBScJAgcCAAAAAK0oIBA+LX0ifsDm185Ecds2v8lw\ngyU2kCcUmKfvBXbAf6rhRYWzuQOwEn7E/aLwIwRaLsdry0+VcallHhSu4RN6HWaE\nQsiPlR4zxP/TP7mhfVEe7XWPxtnMUMtf15OyA51YBM4qBmOHf+MZAAAAIIaTJINn\n+eUBXbki+PSAld2nhJh/LVmFsS+60WyvXkQ1wpsGGBsKAAAALAWCY4d/4wKbDCIh\nBssYbE8GCaaX5NUt+mxyKwwfHifBilZwj2Ul7Ce62azJAAAAAAQBIKbpGG2dWTX8\nj+VjFM21J0hqWlEg+bdiojWnKfA5AQpWUWtnNwDEM0g12vYxoWM8Y81W+bHBw805\nI8kWVkXU6vFOi+HWvv/ira7ofJu16NnoUkhclkUrk0mXubZvyl4GBg==\n-----END PGP PUBLIC KEY BLOCK-----\n"
    }
  }
}