mirror of
https://github.com/adulau/crl-monitor.git
synced 2024-11-24 11:07:14 +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:
|
if args.j:
|
||||||
print (json.dumps(c))
|
print (json.dumps(c))
|
||||||
elif args.f:
|
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:
|
elif args.s:
|
||||||
print (c['fp']+","+base64.standard_b64encode(dercert))
|
print (c['fp']+","+base64.standard_b64encode(dercert))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue