Hide keyboard shortcuts

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 

3 

4 

5def show_fingerprint(): 

6 parser = ArgumentParser() 

7 parser.add_argument('certificate', type=str) 

8 args = parser.parse_args() 

9 

10 if 'certificate' in args: 

11 with open(args.certificate) as file: 

12 cert_str = file.read() 

13 print(certificate_fingerprint(cert_str))