Tool guide
About this tool.
- PEM wraps encoded bytes in BEGIN/END labels. Recognized containers include SPKI/PKCS#1 public keys, PKCS#8/PKCS#1/SEC1 private keys and encrypted-private-key labels.
- Public fingerprints identify the encoded container: SPKI DER and PKCS#1 DER fingerprints can differ for the same mathematical key. fingerprintFormat identifies the representation.
- Private output contains container/algorithm metadata only. Encryption is detected, not decrypted; passphrases are not accepted.
- Identify public/private container types.
- Compare a public fingerprint using the same DER representation.
- Use dedicated crypto tooling for decryption, full key validation or key-pair matching.
Paste exactly one supported key block or choose a PEM text file up to 1 MiB.
Run explicitly. Files have precedence; pasted key text is excluded from new VS Code drafts.
Read kind, container, algorithm/details and fingerprintFormat. There is no passphrase/decryption step.
Copy/download pem-key-inspector.json. Raw key bytes are not exported; key strength and pair matching are not certified.
- BEGIN PUBLIC KEY with a 2048-bit RSA key → kind public, algorithm rsa, modulusLength 2048, fingerprintFormat SPKI DER.
- BEGIN PUBLIC KEY with a P-256 key → algorithm ec, namedCurve P-256.
- BEGIN RSA PUBLIC KEY → fingerprintFormat PKCS#1 DER, a different fingerprint from the SPKI form of the same key.
- BEGIN PRIVATE KEY → kind private and its algorithm, with no fingerprint or key numbers.
- BEGIN ENCRYPTED PRIVATE KEY → encryptedPrivateKey true and algorithm encrypted; nothing is decrypted.
- An ssh-rsa AAAA… line → error: Provide exactly one PEM key container.
- Certificates, CSRs, OpenSSH and multiple key blocks are rejected.
- Raw DER files are not accepted.
- RSA modulus size is metadata, not proof that the key is safe.
- Encrypted-container detection does not prove decryptability.
- Public fingerprints depend on container representation.
- The visible paste field, source file and clipboard can expose keys; handle them carefully.