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

Method isSelfSigned

scapy/layers/tls/cert.py:1015–1023  ·  view source on GitHub ↗

Return True if the certificate is self-signed: - issuer and subject are the same - the signature of the certificate is valid.

(self)

Source from the content-addressed store, hash-verified

1013 return self.isIssuer(other)
1014
1015 def isSelfSigned(self):
1016 """
1017 Return True if the certificate is self-signed:
1018 - issuer and subject are the same
1019 - the signature of the certificate is valid.
1020 """
1021 if self.issuer_hash == self.subject_hash:
1022 return self.isIssuer(self)
1023 return False
1024
1025 def encrypt(self, msg, t="pkcs", h="sha256", mgf=None, L=None):
1026 # no ECDSA *encryption* support, hence only RSA specific keywords here

Callers

nothing calls this directly

Calls 1

isIssuerMethod · 0.95

Tested by

no test coverage detected