OpenSSL will allow you to look at it if it is installed on your system, using the OpenSSL x509 tool.

openssl x509 -noout -text -in 'cerfile.cer';

The format of the .CER file might require that you specify a different encoding format to be explicitly called out.

openssl x509 -inform pem -noout -text -in 'cerfile.cer';

or

openssl x509 -inform der -noout -text -in 'cerfile.cer';

On Windows systems you can right click the .cer file and select Open. That will then let you view most of the meta data.

On Windows you run Windows certificate manager program using certmgr.msc command in the run window. Then you can import your certificates and view details.

Answer from Helvick on serverfault.com
🌐
SSLShopper
sslshopper.com › article-most-common-openssl-commands.html
The Most Common OpenSSL Commands
If you are trying to verify that an SSL certificate is installed correctly, be sure to check out the SSL Checker. Check an MD5 hash of the public key to ensure that it matches with what is in a CSR or private key · openssl x509 -noout -modulus -in certificate.crt | openssl md5 openssl rsa ...
🌐
SSL Dragon
ssldragon.com › home › blog › advanced ssl › how to check an ssl certificate in linux with openssl
How to Check a Certificate with OpenSSL - SSL Dragon
October 27, 2025 - To verify if the public and private keys match, you need to extract the public key from each file and generate a hash output for it. All three files should share the same public key and the same hash value. Here’s how to use OpenSSL to check certificates and key details.
🌐
Pleasant Solutions
pleasantpasswords.com › info › pleasant-password-server › b-server-configuration › 3-installing-a-3rd-party-certificate › openssl-commands
OpenSSL Commands - Pleasant Solutions
If you are receiving an error that the private doesn't match the certificate or that a certificate that you installed to a site is not trusted, try one of these commands. Check an MD5 hash of the public key to ensure that it matches with what is in a CSR or private key · openssl x509 -noout -modulus -in certificate.crt | openssl md5 openssl rsa -noout -modulus -in privateKey.key | openssl md5 openssl req -noout -modulus -in CSR.csr | openssl md5
🌐
Xolphin
xolphin.com › support › manuals › openssl
Frequently used OpenSSL Commands
Check an SSL connection. All certificates (also intermediate certificates) should be displayed. openssl s_client -connect www.paypal.com:443
🌐
OpenSSL
docs.openssl.org › 3.1 › man1 › openssl-verification-options
openssl-verification-options - OpenSSL Documentation
Currently predefined purposes are sslclient, sslserver, nssslserver, smimesign, smimeencrypt, crlsign, ocsphelper, timestampsign, and any. If peer certificate verification is enabled, by default the TLS implementation and thus the commands openssl-s_client(1) and openssl-s_server(1) check for ...
Find elsewhere
🌐
Ping Identity
docs.pingidentity.com › solution-guides › standards_and_protocols_use_cases › htg_use_openssl_to_test_ssl_connectivity.html
Using OpenSSL s_client commands to test SSL connectivity | Use Cases
In the command line, enter openssl s_client -connect <hostname>:<port>. This opens an SSL connection to the specified hostname and port and prints the SSL certificate. Check the availability of the domain from the connection results.
🌐
Dell
dell.com › home › support home › knowledge base article
PowerEdge: How to Check, Validate, and Convert SSL Certificate Using OpenSSL and Keytool Commands | Dell Canada
July 18, 2025 - How to check, validate, and convert SSL certificates using OpenSSL and Keytool. This article includes commands for PEM, DER, PKCS12, and certificate fingerprint checks.
🌐
Warp
warp.dev › terminus › openssl-check-certificate
Warp: How To Verify A Certificate With OpenSSL
January 31, 2024 - If you’re using Warp as your ... ... Entering check certificate expiration openssl in the AI Command Search will prompt an openssl command that can then quickly be inserted into your shell by doing CMD+ENTER...
🌐
OpenSSL
docs.openssl.org › 3.0 › man1 › openssl-verify
openssl-verify - OpenSSL Documentation
See "Trusted Certificate Options" in openssl-verification-options(1) for details. -allow_proxy_certs, -attime, -no_check_time, -check_ss_sig, -crl_check, -crl_check_all, -explicit_policy, -extended_crl, -ignore_critical, -inhibit_any, -inhibit_map, -no_alt_chains, -partial_chain, -policy, -policy_check, -policy_print, -purpose, -suiteB_128, -suiteB_128_only, -suiteB_192, -trusted_first, -use_deltas, -auth_level, -verify_depth, -verify_email, -verify_hostname, -verify_ip, -verify_name, -x509_strict -issuer_checks
🌐
Linux Handbook
linuxhandbook.com › check-certificate-openssl
How to Check Certificate with OpenSSL
March 4, 2024 - The openssl command can also be used to verify a Certificate and CSR(Certificate Signing Request). For verifying a crt type certificate and to get the details about signing authority, expiration date, etc., use the command: ... You can use the ...
🌐
Liquid Web
liquidweb.com › home › guide to testing an ssl connection using openssl
Test an SSL Connection Using OpenSSL s_client | Liquid Web
March 12, 2025 - The Subject Alternative Name (SAN) in a certificate allows for securing multiple domains with just one certificate. You can check it by piping the s_client output into an x509 command. Here is the appropriate syntax. $ echo | openssl s_client -connect example.org:443 2>/dev/null | openssl x509 -noout -ext subjectAltName
🌐
Sectigo
sectigo.com › faqs › detail › How-do-I-verify-that-a-private-key-matches-a-certificate-OpenSSL-1527076112539 › kA01N000000zFTR
How do I verify that a private key matches a certificate? (OpenSSL) ...
July 5, 2021 - To verify the consistency of the RSA private key and to view its modulus: openssl rsa -modulus -noout -in myserver.key | openssl md5 openssl rsa -check -noout -in myserver.key RSA Key is ok
🌐
Yourwebhoster
help.yourwebhoster.eu › en › support › solutions › articles › 80000949039-how-to-verify-ssl-certificates-with-openssl-on-command-line
How to verify SSL certificates with OpenSSL on Command Line : Yourwebhoster.eu
To make sure that you have installed the SSL certificate correctly, we have have compiled a cheatsheet with OpenSSL commands to verify that multiple protocols use the correct certificate. Enter the domain you want to check here: {INPUT:ser...