| Extracted from Pike v7.8 release 866 at 2018-02-09.

[Top]
Tools
Tools.X509

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