Documentation ¶
Overview ¶
Package revoke provides functionality for checking the validity of a cert. Specifically, the temporal validity of the certificate is checked first, then any CRL and OCSP url in the cert is checked.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CRLSet = map[string]*pkix.CertificateList{}
CRLSet associates a PKIX certificate list with the URL the CRL is fetched from.
View Source
var HTTPClient = http.DefaultClient
HTTPClient is an instance of http.Client that will be used for all HTTP requests.
Functions ¶
func VerifyCertificate ¶
func VerifyCertificate(cert *x509.Certificate) (revoked, ok bool, err error)
VerifyCertificate ensures that the certificate passed in hasn't expired and checks the CRL for the server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.