Set default checksum for key fingerprint to SHA1

This commit is contained in:
Bo Maryniuk 2016-02-12 15:13:21 +01:00
parent 2ed7286af1
commit 413eca124d

View file

@ -858,10 +858,10 @@ def path_join(*parts):
))
def pem_finger(path=None, key=None, sum_type='md5'):
def pem_finger(path=None, key=None, sum_type='sha1'):
'''
Pass in either a raw pem string, or the path on disk to the location of a
pem file, and the type of cryptographic hash to use. The default is md5.
pem file, and the type of cryptographic hash to use. The default is SHA1.
The fingerprint of the pem will be returned.
If neither a key nor a path are passed in, a blank string will be returned.