Method Tools.X509.verify_certificate()
- Method
verify_certificate
TBSCertificate
verify_certificate(string
s
,mapping
authorities
)- Description
Decodes a certificate, checks the signature. Returns the TBSCertificate structure, or 0 if decoding or verification failes.
Authorities is a mapping from (DER-encoded) names to a verifiers.
- Note
This function allows self-signed certificates, and it doesn't check that names or extensions make sense.