Lines Matching refs:tbsCert
245 tbsCert = cert.tbsCertificate
246 sigAlg = tbsCert.signature
249 return self.verify(raw(tbsCert), sigVal, h=h, t='pkcs')
406 def signTBSCert(self, tbsCert, h="sha256"): argument
420 sigAlg = tbsCert.signature
422 sigVal = self.sign(raw(tbsCert), h=h, t='pkcs')
424 c.tbsCertificate = tbsCert
435 tbsCert = cert.tbsCertificate
436 sigAlg = tbsCert.signature
439 return self.verify(raw(tbsCert), sigVal, h=h, t='pkcs')
565 tbsCert = cert.tbsCertificate
566 self.tbsCertificate = tbsCert
568 if tbsCert.version:
569 self.version = tbsCert.version.val + 1
572 self.serial = tbsCert.serialNumber.val
573 self.sigAlg = tbsCert.signature.algorithm.oidname
574 self.issuer = tbsCert.get_issuer()
575 self.issuer_str = tbsCert.get_issuer_str()
577 self.subject = tbsCert.get_subject()
578 self.subject_str = tbsCert.get_subject_str()
581 self.notBefore_str = tbsCert.validity.not_before.pretty_time
582 notBefore = tbsCert.validity.not_before.val
591 self.notAfter_str = tbsCert.validity.not_after.pretty_time
592 notAfter = tbsCert.validity.not_after.val
601 self.pubKey = PubKey(raw(tbsCert.subjectPublicKeyInfo))
603 if tbsCert.extensions:
604 for extn in tbsCert.extensions: