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

Method resignCert

scapy/layers/tls/cert.py:669–671  ·  view source on GitHub ↗

Rewrite the signature of either a Cert or an X509_Cert.

(self, cert)

Source from the content-addressed store, hash-verified

667 return c
668
669 def resignCert(self, cert):
670 """Rewrite the signature of either a Cert or an X509_Cert."""
671 return self.signTBSCert(cert.tbsCertificate, h=None)
672
673 def verifyCert(self, cert):
674 """Verifies either a Cert or an X509_Cert."""

Callers 2

gen_alike_chainMethod · 0.80
resignWithMethod · 0.80

Calls 1

signTBSCertMethod · 0.95

Tested by

no test coverage detected