How to use
- Enter the certificate (or CSR) PEM.
- Enter the private key PEM.
- Click "Compare" to check whether they match.
🎯 Use Cases
- Confirm the certificate and private key are a matching pair before deploying to a server
- Find the correct private key among several certificate files
- Verify a key file swap after certificate renewal
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