Documentation ¶
Overview ¶
Based on https://github.com/asyncsrc/ssl_scan
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckExpirationStatus ¶
func CheckExpirationStatus(cd *CertificateDetails, expirationDaysThreshold int)
Types ¶
type CertificateDetails ¶
type CertificateDetails struct { DaysUntilExpiration int IssuerName string SubjectName string SerialNumber string ExpiringSoon bool Expired bool Hostname string TimeTaken time.Duration ExpirationDate string Thumbprint string }
func GetCertificateDetails ¶
func GetCertificateDetails(hostname string, connectionTimeout int) (CertificateDetails, error)
func ReadCertificateDetailsFromFile ¶
func ReadCertificateDetailsFromFile(publicCertFile, privateCertFile string) ([]CertificateDetails, error)
func (CertificateDetails) String ¶
func (cd CertificateDetails) String() string
type ResultError ¶
type ResultError struct { Res CertificateDetails Err error }
Click to show internal directories.
Click to hide internal directories.