Certificate Key Matcher

You can check with the SHA Checksum whether a certificate matches a private key, or a CSR matches a certificate on your own computer by using the OpenSSL commands below:

openssl pkey -in privateKey.key -pubout -outform pem | sha256sum

openssl x509 -in certificate.crt -pubkey -noout -outform pem | sha256sum

openssl req -in CSR.csr -pubkey -noout -outform pem | sha256sum

Leave a Reply

Your email address will not be published. Required fields are marked *

Releated

Why not Padlock? Padlock not showing green color

Installing an SSL certificate and configuring a website for HTTPS is an extremely challenging task. That’s because you’re not just configuring the server for encrypted connections, you’re essentially redirecting every single page and asset to HTTPS. For larger sites with massive infrastructures this can be a nightmare-heck, it can be a nightmare for even small […]

CSR for Tomcat

1. Navigate to the DirectoryThe Directory is where you will manage the certificate. 2. Enter key generation commandGenerate a keystore and private key by running the following command: keytool -genkey -alias server -keyalg RSA -keysize 2048 -keystore your_domain_name.jksNote: Replace .your_domain_name. with the primary domain you will be securing with the certificate. 3. Create the keystoreEnter […]