Check which certificate belongs with a private key before installation
Admin ·
Before installing a certificate, check that it contains the public key belonging to the private key you intend to use. The workspace checks the key’s signing consistency and compares public fingerprints when you supply a second document.
Run the disposable matching example
Choose Run matching example. The worker generates a fresh P-256 pair in this tab. The checker reports PKCS #8, EC P-256 and a match with the SPKI public key.
Open Export the report and download private-key-check.json. Verify that fingerprint and comparison.fingerprint contain the same 64 hexadecimal characters and comparison.match is true. Each run generates a different key pair and fingerprint.
Compare your key with one certificate or request
Choose your key and one certificate or paste their PEM blocks in the matching fields. Keep the certificate chain elsewhere and select the leaf certificate whose key you expect. A PKCS #10 request or SPKI public key also works as the optional comparison.
If the fingerprints differ, identify the certificate or CSR generated with the intended key. When only the private key is supplied, inspect the structure and algorithm, then obtain the public document before treating the pair as verified.
RFC 7468 Textual Encodings of PKIX, PKCS, and CMS StructuresRFC 5280 Internet X.509 Public Key Infrastructure Certificate and CRL Profile
Verify the public fingerprint independently
On a trusted local workstation with OpenSSL, the example command extracts the public component from an unencrypted test key as DER, then hashes it. Compare this digest with SHA-256 of public SPKI in the workspace.
A certificate fingerprint uses the whole certificate. Issuance, validity and trust are separate properties, even if two certificates contain the same key.
openssl pkey -in test-private.pem -pubout -outform DER | openssl dgst -sha256OpenSSL pkey commandRFC 5280 Internet X.509 Public Key Infrastructure Certificate and CRL Profile
Common questions
Does a matching CSR mean the request signature is valid?
A match confirms that the CSR contains the same public key. Validate the request signature and requested names in your certificate issuance workflow.
Which bytes does the report export?
The report includes only formats, algorithms, any RSA modulus length, public fingerprints and the check outcomes. Select Clear to discard the tab inputs.
Sources
Put it into practice.
- Private Key Checker
- X.509 Certificate Inspector
- Certificate Fingerprint Generator
- Self-Signed Certificate Generator