Languages
[Edit]
EN

Bash - display fingerprint / thumbprint for certificate (DER format)

8 points
Created by:
Wade
562

In this short article, we would like to show how to get a SHA-1 fingerprint from a certificate saved as *.der using openssl under Bash.

Quick solution (SHA-1 fingerprint):

Example output:

Where:

  • -c adds : separator to fingerprint.
    Without -c parameter openssl returns:

 

Hint: depending on the used program fingerprint is called thumbprint too.

 

Different algorithms

Edit

Fingerprint can be calculated with different algorithms: MD5, SHA-1, SHA-256, etc.

Example:

 

1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join