MCPcopy Create free account
hub / github.com/secdev/scapy / verifyCert

Method verifyCert

scapy/layers/tls/cert.py:368–373  ·  view source on GitHub ↗

Verifies either a Cert or an X509_Cert.

(self, cert)

Source from the content-addressed store, hash-verified

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."""

Callers 3

verifyCertMethod · 0.45
isIssuerMethod · 0.45
isIssuerMethod · 0.45

Calls 2

verifyMethod · 0.95
_get_cert_sig_hashnameFunction · 0.85

Tested by

no test coverage detected