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