Return True if the certificate is self-signed: - issuer and subject are the same - the signature of the certificate is valid.
(self)
| 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 |