add test to check

pull/498/head
Sebdraven 2021-04-30 15:25:27 +02:00
parent 32aeb52efc
commit 86beb488c1
1 changed files with 6 additions and 3 deletions

View File

@ -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'])