Versions in this module Expand all Collapse all v1 v1.0.9 Jul 6, 2022 v1.0.8 Jul 6, 2022 Changes in this version + func CertificateType(cert *x509.Certificate) string + func DecodeCertificatesPEM(data []byte) ([]*x509.Certificate, error) + func ExtKeyUsageToString(extKeyUsage []x509.ExtKeyUsage) []string + func IsRoot(cert *x509.Certificate) bool + func KeyUsageToString(keyUsage x509.KeyUsage) []string + func ValidityFormat(t time.Time) string + type Certificate struct + Index int + X509Certificate *x509.Certificate + func (c Certificate) IsExpired() bool + func (c Certificate) IsExpiredAt(t time.Time) bool + func (c Certificate) String() string + func (c Certificate) ToPEM() []byte + type CertificateLocation struct + Certificates Certificates + Path string + TLSVersion uint16 + VerifiedChains []Certificates + func LoadCertificate(fileName string, data []byte) (CertificateLocation, error) + func LoadCertificateFromStdin() (CertificateLocation, error) + func LoadCertificatesFromFile(fileName string) (CertificateLocation, error) + func LoadCertificatesFromNetwork(addr string, tlsSkipVerify bool) (CertificateLocation, error) + type Certificates []Certificate + func FromBytes(data []byte) (Certificates, error) + func FromX509Certificates(cs []*x509.Certificate) Certificates