Verifies either a Cert or an X509_Cert.
(self, cert)
| 366 | """ |
| 367 | |
| 368 | def verifyCert(self, cert): |
| 369 | """Verifies either a Cert or an X509_Cert.""" |
| 370 | h = _get_cert_sig_hashname(cert) |
| 371 | tbsCert = cert.tbsCertificate |
| 372 | sigVal = bytes(cert.signatureValue) |
| 373 | return self.verify(bytes(tbsCert), sigVal, h=h, t="pkcs") |
| 374 | |
| 375 | def verifyCsr(self, csr): |
| 376 | """Verifies a CSR.""" |
no test coverage detected