Versions in this module Expand all Collapse all v0 v0.0.1 Feb 6, 2022 Changes in this version + const TYPE_FILE + const TYPE_URL + var ErrCertNotFound = errors.New("Certificate for a given url couldn't be found or matched") + var ErrMoreThanOneNoneCaCertInChain = errors.New("Certificate chain has more than one non CA cert. That is a problem") + type CertInfo struct + Certificate *x509.Certificate + NotAfter time.Time + Subject string + Type string + func GetCertInfoForFile(rawCertBlockFromFile []byte) (*CertInfo, error) + func GetCertInfoForUrl(urlInfo *url.URL) (*CertInfo, error) + func (ci *CertInfo) DisplayInfo() + func (ci *CertInfo) ExpiresIn() time.Duration + func (ci *CertInfo) ExpiresInString() string + func (ci *CertInfo) Status() string