Get a Website SHA-1 Certificate Fingerprint
You can use OpenSSL to retrieve the SHA-1 fingerprint of a website's SSL/TLS certificate.
Using OpenSSL
Run:
Example output:
Replace:
with the domain you want to check.
For example:
What the command does
openssl s_client connects to the HTTPS server and retrieves its certificate.
The -servername option sends the correct SNI hostname, which is important when multiple websites are hosted on the same server.
The certificate is then passed to:
which prints its SHA-1 certificate fingerprint.
SHA-256 Fingerprint
For newer systems, SHA-256 is generally preferred:
Use SHA-1 only when the service or application specifically requires a SHA-1 certificate fingerprint.