mirror of https://github.com/MISP/misp-modules
add test to check
parent
32aeb52efc
commit
86beb488c1
|
@ -82,8 +82,11 @@ class OnypheClient:
|
|||
object_certificate.add_attribute('signature_algorithm', value)
|
||||
|
||||
object_certificate.add_attribute('pubkey-info-algorithm',r['publickey']['algorithm'])
|
||||
object_certificate.add_attribute('pubkey-info-exponent',r['publickey']['exponent'])
|
||||
object_certificate.add_attribute('pubkey-info-size',r['publickey']['length'])
|
||||
|
||||
if 'exponent' in r['publickey']:
|
||||
object_certificate.add_attribute('pubkey-info-exponent',r['publickey']['exponent'])
|
||||
if 'length' in r['publickey']:
|
||||
object_certificate.add_attribute('pubkey-info-size',r['publickey']['length'])
|
||||
|
||||
object_certificate.add_attribute('issuer',r['issuer']['commonname'])
|
||||
object_certificate.add_attribute('validity-not-before',r['validity']['notbefore'])
|
||||
|
|
Loading…
Reference in New Issue