Show SSL key fingerprints on self generated certs

This commit is contained in:
Sebastian Lohff 2012-04-20 04:22:02 +02:00
parent 89fde3fd82
commit 9ee544dece
1 changed files with 2 additions and 0 deletions

View File

@ -406,6 +406,8 @@ class ServeFile():
self.key = pkey self.key = pkey
print "done." print "done."
print "SHA1 fingerprint:", cert.digest("sha1")
print "MD5 fingerprint:", cert.digest("md5")
def _getCert(self): def _getCert(self):
return self.cert return self.cert