b2KIT

Certificate Key Matcher

Verify that a certificate and private key match by comparing their public key modulus fingerprints.

Tested tool guide Tested browser tools Checked August 16, 2026

What Certificate Key Matcher does and how it behaves

Certificate Key Matcher answers one narrow deployment question: does the RSA public key inside an X.509 certificate correspond to the supplied RSA private key? It extracts the modulus from each input, represents each modulus as a fingerprint, and compares those fingerprints. A match indicates shared RSA key material despite the files having different contents. The common surprise is that this is not certificate validation: a matching certificate may still be expired, revoked, untrusted, or issued for another hostname.

How the result is produced

1

RSA modulus extraction

An X.509 certificate contains a public key, while an RSA private key also records the modulus associated with its public component. The matcher reduces both accepted inputs to those modulus values. It therefore compares the mathematical key material rather than comparing the PEM text, certificate serial number, subject name, issuer, or surrounding metadata.

2

Fingerprint comparison

Each extracted modulus is represented by a fingerprint suitable for direct comparison. Equal fingerprints produce a match result; different fingerprints indicate that the certificate and private key do not share the same RSA modulus. This modulus fingerprint is distinct from a certificate fingerprint, which identifies the encoded certificate and changes when certificate fields or signatures change.

Good uses

  • Checking that a renewed TLS certificate still belongs to the private key already installed on a server.
  • Identifying which private key from a backup corresponds to a particular certificate.
  • Verifying certificate and key files before configuring a reverse proxy, web server, or load balancer.

Limits and checks

  • A modulus comparison applies to RSA keys. Elliptic-curve, Ed25519, and other non-RSA key types do not have an RSA modulus and cannot be established by this result.
  • A match says nothing about expiration, revocation, hostname coverage, issuing chain, trust, permitted key usage, or whether the certificate should be deployed.
  • The advertised comparison is modulus-based, so it does not by itself compare the RSA public exponent. Modulus equality is the usual practical pairing check for normally generated RSA material, but it is narrower than comparing every public-key parameter.

Common questions

Does a match mean the certificate is valid and ready to install?

No. It means the certificate and private key produced the same RSA modulus fingerprint. Certificate validity is a separate question. Check the validity period, subject alternative names, issuer chain, signature, revocation status where applicable, and intended key usage before deployment. A correctly paired certificate can still fail any of those checks.

Is the private key uploaded for comparison?

No. This tool performs the certificate and key comparison in the browser, so the pasted private key is not uploaded by the tool. The key should still be treated as sensitive. Use a trusted device and browser environment, avoid shared clipboards, and clear copied key material after completing the check.

References and verification

The behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools