mirror of
https://github.com/adulau/crl-monitor.git
synced 2024-12-09 18:37:23 +00:00
Handle unset DN
This commit is contained in:
parent
e91731d82b
commit
0d90f20ed7
1 changed files with 4 additions and 1 deletions
|
@ -73,7 +73,10 @@ for l in fileinput.input(args.r):
|
|||
if args.j:
|
||||
print (json.dumps(c))
|
||||
elif args.f:
|
||||
print (c['dstip']+","+c['fp']+","+x509.get_subject().CN)
|
||||
subject = x509.get_subject().CN
|
||||
if subject is None:
|
||||
subject = ""
|
||||
print (c['dstip']+","+c['fp']+","+subject
|
||||
elif args.s:
|
||||
print (c['fp']+","+base64.standard_b64encode(dercert))
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue