Certificate and Private Key Matcher
Paste or open certificates, CSRs and keys in any common format; the tool groups the ones that share a public key and tells you which pair to install.
Работает в вашем браузере. Файлы никогда не покидают устройство. Как это проверить
…
Как пользоваться
- 1Add files
Open certificate, CSR and key files, or paste PEM blocks into the text box.
- 2Read the verdict
The Match tab lists which key fits which certificate and CSR.
- 3Inspect key groups
Each coloured card shows the items that share one public key and its fingerprint.
- 4Run the proof
Press Run sign and verify proof on a group that contains a private key.
- 5Check the chain
Open Chain and expiry to confirm order, signatures and dates.
- 6Save a report
Download the text report, which lists fingerprints but never the keys.
Об этом инструменте
The error message key values mismatch is one of the most common reasons a certificate installation fails. It happens when a server is given a certificate that was issued for a different private key, often because a new CSR was generated while an older key file was still lying around, or because files from two renewals got mixed up. The usual fix is to run openssl commands that print the modulus of each file and compare hashes by eye. This matcher does the same thing for any number of files at once. It reads certificates, certificate signing requests, public keys and private keys in PEM or DER, works out the public key inside each, and groups everything that shares the same key. A coloured card shows each group, a verdict list says which key matches which certificate, and a chain tab checks that intermediate certificates are in the right order.
Formats it understands
Certificates in PEM or DER (.crt, .cer, .pem), CSRs (.csr), public keys as SubjectPublicKeyInfo or PKCS #1, and private keys in PKCS #8, the older RSA PRIVATE KEY form and the EC PRIVATE KEY form used by OpenSSL. RSA, ECDSA on P-256, P-384 and P-521, and Ed25519 keys are supported. For RSA and most EC keys the public part is read straight from the file; for EC and Ed25519 keys that do not store it, the browser derives it with WebCrypto. Encrypted private keys are refused with a note on how to decrypt them locally.
How matching works
Every item is reduced to its SubjectPublicKeyInfo, the exact bytes that appear inside a certificate. Two items match when the SHA-256 hash of those bytes is equal. That fingerprint is shown for each group, together with the base64 form used for public key pinning. When a group holds both a private key and a certificate, a button runs a proof: it signs random data with the private key and verifies the signature with the certificate's key, which confirms the pair actually works.
Chain and expiry
Paste the server certificate first and the intermediates after it, as in a fullchain.pem file. The chain tab checks that each certificate was signed by the next one, flags expired or not-yet-valid certificates and warns 30 days before expiry. The details tab lists subject, issuer, alternative names, serial numbers, key types and validity dates.
Privacy and limits
Nothing is uploaded and, unlike most tools on this site, nothing is saved in local storage, because private keys should not linger in a browser profile. Reloading the page forgets everything. The tool does not check revocation or trust in public root stores, and it does not open PKCS #12 (.pfx) files; extract the parts with openssl first.
Пример с решением
An admin has five files after a messy renewal: www.crt, chain.pem with two intermediates, old.key, new.key and request.csr. Pasting them all shows two key groups. Group 1 (RSA 2048) holds new.key, request.csr and www.crt. Group 2 (RSA 2048) holds only old.key. The verdict says new.key matches www.crt, the CSR was used for www.crt, and old.key matches none of the three certificates, so it can be archived. The proof button signs 32 random bytes with new.key and verifies them with www.crt. The chain tab confirms www.crt is signed by the first intermediate, which is signed by the second, and that www.crt expires in 397 days.
Коротко
- Категория: Безопасность
- Работает в браузере, без регистрации и загрузки.
- Введённые данные остаются на вашем устройстве.
- Доступно на английском.
- Содержание проверено:
- Официальный источник: RFC 5280 (X.509), RFC 2986 (PKCS #10), RFC 5208 (PKCS #8) and RFC 5915 (EC keys)
Часто задаваемые вопросы
Why compare public keys and not the files themselves?
A certificate, a CSR and a private key are completely different files, but each one contains or implies the same public key. Comparing that key is the only reliable way to know they belong together.
Is it safe to paste a private key here?
The key is processed in this browser tab only, never sent anywhere and never written to storage. Still, treat production keys with care: use a trusted, up-to-date browser and close the tab afterwards.
My key starts with BEGIN ENCRYPTED PRIVATE KEY. What now?
Decrypt it on your own machine with openssl pkey -in key.pem -out plain.pem, compare, and delete the plain copy. Or compare the certificate with the CSR instead, which proves the same thing when the CSR came from that key.
What does the sign and verify proof add?
Matching public keys already prove the pair belongs together. The proof is a practical second check that the private key file is complete and usable, which catches truncated or corrupted files.
Can it tell me the right chain order?
It checks the order you give: server certificate first, then each issuer. If a link fails, move the certificates until every step shows a valid signature.
Which OpenSSL commands does this replace?
The usual trio openssl x509 -noout -modulus, openssl rsa -noout -modulus and openssl req -noout -modulus, each piped into a hash, plus openssl verify for the chain. This page also handles EC and Ed25519 keys, where the modulus trick does not apply.
