Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoTLSConnection = errors.New("URL is not a TLS connection") ErrUnparseableFile = errors.New("unparseable file") )
errors
Functions ¶
This section is empty.
Types ¶
type CertInfo ¶
type CertInfo struct { TimeFormat string // time format to use // contains filtered or unexported fields }
CertInfo is the struct used to query and return the certificate/s information
func NewFromBytes ¶
NewFromBytes returns a CertInfo from a certificate bytes
func NewFromFile ¶
NewFromFile returns a CertInfo from a certificate file
func NewFromURL ¶
NewFromURL returns a CertInfo struct for a URL
func (*CertInfo) Certificates ¶
func (c *CertInfo) Certificates() []*x509.Certificate
Certificates returns the array of certificates
Click to show internal directories.
Click to hide internal directories.