Documentation ¶
Index ¶
Constants ¶
View Source
const ( TYPE_URL = "url" TYPE_FILE = "file" )
Variables ¶
View Source
var ( ErrCertNotFound = errors.New("Certificate for a given url couldn't be found or matched") ErrMoreThanOneNoneCaCertInChain = errors.New("Certificate chain has more than one non CA cert. That is a problem") )
Functions ¶
This section is empty.
Types ¶
type CertInfo ¶
type CertInfo struct { Type string `json:"type"` Subject string `json:"subject"` NotAfter time.Time `json:"not_after"` Certificate *x509.Certificate }
func GetCertInfoForFile ¶
func (*CertInfo) DisplayInfo ¶
func (ci *CertInfo) DisplayInfo()
func (*CertInfo) ExpiresInString ¶
Click to show internal directories.
Click to hide internal directories.