mirror of
https://github.com/adulau/crl-monitor.git
synced 2024-11-21 17:47:09 +00:00
chg: [api] skip extraction of extension for empty fields
Sample certificate: c46fed822dadac3f31f9bb4d1a78a1d9eae4567b
This commit is contained in:
parent
5ca337aeb0
commit
7cc17a4ced
1 changed files with 4 additions and 1 deletions
|
@ -168,7 +168,10 @@ class FetchCertificateHandler(tornado.web.RequestHandler):
|
||||||
extcount = cert.get_ext_count()
|
extcount = cert.get_ext_count()
|
||||||
|
|
||||||
for i in range(0, extcount):
|
for i in range(0, extcount):
|
||||||
|
try:
|
||||||
out['info']['extension'][cert.get_ext_at(i).get_name()] = cert.get_ext_at(i).get_value()
|
out['info']['extension'][cert.get_ext_at(i).get_name()] = cert.get_ext_at(i).get_value()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
if ricsi.exists(fp):
|
if ricsi.exists(fp):
|
||||||
icsi = ricsi.hgetall(fp)
|
icsi = ricsi.hgetall(fp)
|
||||||
out['icsi'] = icsi
|
out['icsi'] = icsi
|
||||||
|
|
Loading…
Reference in a new issue