1. Home
  2. Developer
  3. Certificate Key Matcher

Certificate Key Matcher

Compare a certificate, private key and CSR to see if they are one key pair.

Runs in your browser · No upload
Private key warning: the key is processed only inside this browser tab and is never uploaded or stored. Still, avoid pasting a real production private key into any site you do not fully trust. Prefer test keys or run the openssl commands below yourself, and press "Clear all" when you are done.
Starts with BEGIN CERTIFICATE. For a chain the first certificate is used.
Reads BEGIN PRIVATE KEY, RSA PRIVATE KEY and EC PRIVATE KEY. Encrypted keys must be decrypted first.
Starts with BEGIN CERTIFICATE REQUEST. Fill at least two boxes to compare.
Everything matches: it is the same key pair.
ItemStatusKeyModulus MD5Public key SHA-256
CertificatePublic key foundEC prime256v1 (P-256) | example.test-54b72eeb6108b3cefbc162923d905e148c7b188bdacb10bf7b960d8e5b66c010
Private keyPublic key foundEC prime256v1 (P-256) | EC (PKCS#8)-54b72eeb6108b3cefbc162923d905e148c7b188bdacb10bf7b960d8e5b66c010
CSRPublic key foundEC prime256v1 (P-256) | example.test-54b72eeb6108b3cefbc162923d905e148c7b188bdacb10bf7b960d8e5b66c010

Comparison

PairResult
Certificate <-> Private keyMatch
Certificate <-> CSRMatch
Private key <-> CSRMatch

The same check on your server

openssl x509 -noout -modulus -in cert.pem | openssl md5
openssl rsa -noout -modulus -in private.key | openssl md5
openssl req -noout -modulus -in request.csr | openssl md5

If all three hashes are identical, the RSA pair matches. For EC keys compare the output of `openssl pkey -pubout`.

Private key caution (read this first)

A private key is the secret that protects your server. This tool computes with the key only inside this browser tab, never sends it to a server and never stores it in local storage or anywhere else. Even so, follow these rules.

  • Do not paste the real private key of a production server into any website you do not fully trust. That applies to this tool and every other one.
  • Prefer test keys, or run the openssl commands below on the server yourself.
  • When you are done, press Clear all to empty the boxes. The key pre-filled on first load is a throwaway test key created to demonstrate this tool and is not used anywhere.

How to use

  1. Paste the certificate (PEM) in the first box and the private key (PEM) in the second. If you have the CSR you used for the order, paste it in the third.
  2. With two or more boxes filled, the public keys are extracted and compared, and you get “Everything matches” or “Some combinations do not match”.
  3. The table shows the key type, the RSA modulus MD5 and the public key SHA-256 for each box, and the comparison table below shows exactly which pair differs.

How the comparison works

Certificates and CSRs contain a public key, and the same public key can be computed from the private key. For a real key pair these values are identical.

Key type Compared values
RSA Modulus (n) and public exponent (e)
EC (P-256, P-384, P-521) Curve and public point (x, y)

“Modulus MD5” uses the same format as the output of openssl x509 -noout -modulus | openssl md5, so you can compare it by eye with what you get on the server. The sample on first load is an EC key with no modulus, so the “public key SHA-256” (the same value as openssl pkey -pubout -outform DER | openssl sha256) is shown instead. Supported private key formats are PKCS#8 (BEGIN PRIVATE KEY), PKCS#1 (BEGIN RSA PRIVATE KEY) and SEC1 (BEGIN EC PRIVATE KEY).

When a key cannot be read

  • Encrypted private keys (BEGIN ENCRYPTED PRIVATE KEY or Proc-Type: 4,ENCRYPTED) are not read. Decrypt on your server with openssl pkey -in encrypted.key -out decrypted.key and paste the result. This tool never asks for a passphrase.
  • Some keys such as Ed25519 do not contain the public key, so it cannot be computed. The tool says “cannot derive” and does not claim a match or mismatch. Compare the certificate’s public key fingerprint with a value you compute on the server instead.
  • EC private keys without embedded public key data cannot be judged for the same reason.

FAQ

Why do I get “key values mismatch”?

The certificate and private key installed on the server are not the same key pair. It happens when you reissue a certificate with a new CSR but keep using the old private key, or when several key files get mixed up. Comparing two boxes here shows which one differs.

Is the private key handled safely?

The page computes in the browser and sends nothing anywhere, but pasting a production private key into any website is a risky habit. Try test keys first, or run the same comparison with openssl on the server.

Can I also check that a CSR and certificate belong together?

Yes. Fill the CSR box too and the certificate’s and CSR’s public keys are compared. Use it to confirm a certificate was issued for the CSR you submitted. You can inspect the CSR itself in the CSR viewer.

Can I paste a certificate chain?

In the certificate box the first certificate (the server certificate) is used. Inspect each certificate in the SSL certificate viewer.

What if my files are in another format?

Convert .der or .p7b files to PEM first with the certificate converter. .pfx and .p12 are not supported; extract PEM with openssl pkcs12 first.

The same check on a server

openssl x509 -noout -modulus -in cert.pem | openssl md5
openssl rsa -noout -modulus -in private.key | openssl md5
openssl req -noout -modulus -in request.csr | openssl md5

If all three results are identical, the RSA pair matches.

What you paste is processed only in your browser and never sent to a server.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.