November 7, 2023

One of the most common operation I perform on X509 (used e.g. in TLS) certificates is getting their fingerprint – it’s sometimes necessary to point to a specific certificate in configuration or – just check if the certificates installed on the server are in the correct version – and here the cert fingerprint is very useful.

Calculating it with OpenSSL is quite easy, but I suggest you convert this one-liner to your shell function 🙂

openssl x509 -noout -fingerprint -sha1 -inform pem -in CERTFILE.pem | cut -f2 -d=

Here we get SHA1 fingerprint from cert file in PEM format using openssl binary, then just get fingerprint part using cut command resulting in just a fingerprint printed to the console.

I hope you find it useful, subscribe to my mailing list to get more tips like this 🙂

Subscribe to my mailing list to get updated about new blog posts!

You may also find these posts interesting:

Generating secrets in Linux terminal

While working with the infrastructure, on the daily basis I need to

About the author - Łukasz Tomaszkiewicz

My name is Łukasz Tomaszkiewicz and I help developers and devops engineers to accelerate their career in public cloud.

For many years I've supported developer teams in delivering cloud based solutions - from design phase, through automation of deployment to monitoring and optimization as well as day-to-day operations.

In my professional life I'm mainly focused on AWS infrastructure, however - after hours - I like doing my own side projects as it helps me understanding the issues developers may have while using the cloud.

  • Interesting points about game fairness – transparency is key! Seeing platforms like ph889 prioritize RTP & RNG is a good sign. Quick registration is a plus too – check out the ph889 app download apk for a streamlined experience. Definitely a platform to consider!

  • Interesting points about game fairness – transparency is key! Seeing platforms like ph889 prioritize RTP & RNG is a good sign. Quick registration is a plus too – check out the ph889 app download apk for a streamlined experience. Definitely a platform to consider!

  • Interesting points about game fairness – transparency is key! Seeing platforms like ph889 prioritize RTP & RNG is a good sign. Quick registration is a plus too – check out the ph889 app download apk for a streamlined experience. Definitely a platform to consider!

  • {"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
    >