TLDR: Getting a SSL Certificate Fingerprint in Python

  

For a project I am working on I need to know the SHA1 hash (the fingerprint) of a DER encoded (binary) certificate file. I found it strange that nobody had offered up a here's a hunk of code for something so simple. Any novice programmer would probably eventually arrive at this solution on their own but for the sake of those Googling, here it is.

Read more…

Comments

Contents © 2015 Daniel Devine - Nikola Powered - Flattr Me! Flattr this