๐Ÿค SSL Certificate & Private Key Matcher

Compare the RSA modulus of a certificate and a private key (PKCS#1/PKCS#8) to check whether they're a matching pair.

โš ๏ธ Currently only RSA keys are supported (EC keys not supported)

How to use

  1. Enter the certificate (or CSR) PEM.
  2. Enter the private key PEM.
  3. Click "Compare" to check whether they match.

๐ŸŽฏ Use Cases

Example

Input
Certificate PEM:
-----BEGIN CERTIFICATE-----
MIIDDTCCAfWgAwIBAgIUe/13kqiwei2z7puPaEtsEewQs/Mwโ€ฆ
-----END CERTIFICATE-----

Private Key PEM:
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBโ€ฆ
-----END PRIVATE KEY-----
Output
โœ… The certificate and private key match (same key pair)

Given a self-signed certificate for example.com and its own private key, the RSA modulus extracted from each side is identical, so they are reported as the same key pair. Mismatched keys would instead show "โŒ different key pairs".

FAQ

How does the comparison work?
It extracts the RSA modulus (the core value of the public key) from both the certificate (or CSR) and the private key, then checks whether the two values match.
Are both PKCS#1 and PKCS#8 private keys supported?
Yes. It recognizes both -----BEGIN RSA PRIVATE KEY-----(PKCS#1) and -----BEGIN PRIVATE KEY-----(PKCS#8) formats.
Are EC (elliptic curve) keys supported?
Currently only RSA keys are supported.

More Security Tools

๐Ÿ”‘
Password Generator
Generate strong random passwords
#๏ธโƒฃ
Hash Generator
Generate MD5, SHA-1, SHA-256 hashes
๐Ÿ“ฑ
QR Code Generator
Turn text/URLs into a QR code
๐Ÿ—๏ธ
htpasswd Generator
Generate APR1-MD5 hashed passwords
๐Ÿ”
SSL Certificate Viewer
Check issuer, validity & SANs
๐Ÿ“œ
CSR Viewer
Check CSR subject & public key info
โ™ป๏ธ
SSL Certificate Converter
Convert PEM โ†” DER (HEX)
๐Ÿฉบ
SSL Checker
Check HTTPS connectivity & trust
๐Ÿช„
Self-Signed Certificate Generator
Generate a self-signed SSL cert & key
๐Ÿ”
Base64 Encode/Decode
Convert text โ†” Base64
๐Ÿ”‘
HTTP Auth Header Generator
Build Basic/Bearer Authorization headers
๐Ÿชช
JWT Decoder
Inspect JWT header/payload, verify HS256
๐ŸŽซ
Random Token Generator
Generate Hex/Base64/UUID tokens
๐Ÿ”’
Jasypt Encrypt/Decrypt
Encrypt/decrypt Spring Boot ENC(...) values