add reference

pull/498/head
Sebdraven 2021-04-30 15:39:56 +02:00
parent 86beb488c1
commit 73ea9620bf
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ class OnypheClient:
object_certificate.add_attribute('issuer',r['issuer']['commonname'])
object_certificate.add_attribute('validity-not-before',r['validity']['notbefore'])
object_certificate.add_attribute('validity-not-after',r['validity']['notbefore'])
object_certificate.add_reference(self.attribute['uuid'], 'related-to')
self.misp_event.add_object(object_certificate)