Coverage for openleadr/fingerprint.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1from argparse import ArgumentParser
2from openleadr.utils import certificate_fingerprint
5def show_fingerprint():
6 parser = ArgumentParser()
7 parser.add_argument('certificate', type=str)
8 args = parser.parse_args()
10 if 'certificate' in args:
11 with open(args.certificate) as file:
12 cert_str = file.read()
13 print(certificate_fingerprint(cert_str))