mirror of
https://github.com/adulau/crl-monitor.git
synced 2024-12-22 08:45:59 +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()
|
||||
|
||||
for i in range(0, extcount):
|
||||
out['info']['extension'][cert.get_ext_at(i).get_name()] = cert.get_ext_at(i).get_value()
|
||||
try:
|
||||
out['info']['extension'][cert.get_ext_at(i).get_name()] = cert.get_ext_at(i).get_value()
|
||||
except:
|
||||
pass
|
||||
if ricsi.exists(fp):
|
||||
icsi = ricsi.hgetall(fp)
|
||||
out['icsi'] = icsi
|
||||
|
|
Loading…
Reference in a new issue