SSL Certificate & Public Key Matcher
Compares SHA-256 digests of a certificate’s public-key SPKI bytes and a supplied PUBLIC KEY PEM. It does not accept or compare a private key.
About this ssl certificate & public key matcher
Compares SHA-256 digests of a certificate’s public-key SPKI bytes and a supplied PUBLIC KEY PEM. It does not accept or compare a private key Runs entirely in-memory using Web Crypto primitives to keep sensitive tokens, certificates, and cryptographic keys secure from third-party interception.
Encoding & cryptographic principles
Parses, inspects, and validates public key infrastructure certificates and requests conforming to RFC 5280 (X.509 v3 Certificates), RFC 2986 (PKCS#10 Certificate Signing Requests - CSR), and RFC 7468 (PEM Encapsulation). Deconstructs ASN.1 DER binary byte streams to extract Subject, Issuer, Validity Period (NotBefore / NotAfter), Public Key Algorithm (RSA, ECDSA, Ed25519), Key Usage, Extended Key Usage, and Subject Alternative Names (SANs). Calculates SHA-256 certificate fingerprints and validates public key matching.
Worked verification example
Scenario: Compare a complete demonstration certificate with its corresponding PUBLIC KEY PEM.
Sample input:
Processing: Hashes both DER SubjectPublicKeyInfo byte strings and compares them. It does not inspect a private key or validate certificate trust.
Illustrative output:
Security parameters & input constraints
It compares supplied public-key DER bytes; it does not inspect a private key or prove ownership. Malformed certificate/key input returns match:false with an error. Matching bytes do not establish certificate validity, hostname, trust chain or revocation state.
Cryptographic digests, encoded strings, and signatures generated by SSL Certificate & Public Key Matcher should be verified against target authentication systems before production use.
Client-side Web Crypto boundary
Key derivation, hashing, and encoding in SSL Certificate & Public Key Matcher execute in local memory using Web Crypto APIs without remote socket transmission.
Cryptographic specifications & RFC standards
Technical specifications and cryptographic RFC standards governing algorithms and key representations:
SSL Certificate & Public Key Matcher verification · Audit standards
How to use it
- Enter JSON containing certificate PEM and publicKey PEM.
- Parse the X.509 certificate, hash its DER public-key bytes and the supplied Base64-decoded key bytes with SHA-256.
- Compare the two digests and read match plus both hashes in JSON.
Frequently asked questions
Which JSON fields are required by SSL Certificate & Public Key Matcher?+
It requires certificate and publicKey PEM strings. Missing either field returns a structured match false result with the explicit required-fields error.
How does it compare a certificate and public key?+
It reads the certificate with X509Certificate, hashes its raw SubjectPublicKeyInfo bytes with SHA-256, base64-decodes the supplied PEM public key, and compares those digests.
What example can I run locally?+
The complete CZOA demonstration certificate and its matching PUBLIC KEY PEM return match true with the same SHA-256 digest. Missing fields are rejected separately. This does not prove private-key possession or certificate trust.
Does a matching result validate certificate trust?+
No. A match only means the two supplied SPKI byte digests are equal. It does not validate issuer trust, hostname, expiry, revocation, or key usage.
