Documentation
¶
Index ¶
- func CheckCertificate(cert *x509.Certificate, clockSkewDays int, logger hclog.Logger) bool
- func IsValid(cert *x509.Certificate, clockSkewDays int) bool
- func MakeUILogger(debug bool, noText bool, noColor bool) hclog.Logger
- type CertMonitorUI
- func (u *CertMonitorUI) PrintJWKCert(jwk *certmonitor.CertMonitorJWK, skew int)
- func (u *CertMonitorUI) PrintJWKCerts(jwks []*certmonitor.CertMonitorJWK, alg string, kty string, kid string, ...)
- func (u *CertMonitorUI) PrintScan(url string, resutls []*TLSScan, skew int)
- func (u *CertMonitorUI) PrintX509Cert(cert *x509.Certificate, index int, skew int)
- func (u *CertMonitorUI) PrintX509CertList(certs []*x509.Certificate, skew int)
- func (u *CertMonitorUI) TablePrintJwkCert(jwk *certmonitor.CertMonitorJWK, skew int)
- func (u *CertMonitorUI) TablePrintX509Cert(cert *x509.Certificate, skew int, extra ...*TableEntry)
- func (u *CertMonitorUI) TableX509Cert(cert *x509.Certificate, skew int, extra ...*TableEntry) string
- type TLSScan
- type TableEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCertificate ¶
CheckCertificate check certificate expiration with skewed days
Types ¶
type CertMonitorUI ¶
func NewCertMonitorUI ¶
func NewCertMonitorUI(l hclog.Logger, debug bool, noText bool) *CertMonitorUI
NewCertMonitorUI create a new UI
func (*CertMonitorUI) PrintJWKCert ¶
func (u *CertMonitorUI) PrintJWKCert(jwk *certmonitor.CertMonitorJWK, skew int)
JWK format
func (*CertMonitorUI) PrintJWKCerts ¶
func (u *CertMonitorUI) PrintJWKCerts(jwks []*certmonitor.CertMonitorJWK, alg string, kty string, kid string, index int, skew int)
PrintJWKCerts prints the List of JWKs and apply the alg, kid, index filter if needed
func (*CertMonitorUI) PrintScan ¶ added in v1.6.0
func (u *CertMonitorUI) PrintScan(url string, resutls []*TLSScan, skew int)
func (*CertMonitorUI) PrintX509Cert ¶
func (u *CertMonitorUI) PrintX509Cert(cert *x509.Certificate, index int, skew int)
PrintX509Cert print the X509 cert
func (*CertMonitorUI) PrintX509CertList ¶
func (u *CertMonitorUI) PrintX509CertList(certs []*x509.Certificate, skew int)
PrintX509Cert print the list of X509 certs
func (*CertMonitorUI) TablePrintJwkCert ¶ added in v1.6.0
func (u *CertMonitorUI) TablePrintJwkCert(jwk *certmonitor.CertMonitorJWK, skew int)
func (*CertMonitorUI) TablePrintX509Cert ¶ added in v1.6.0
func (u *CertMonitorUI) TablePrintX509Cert(cert *x509.Certificate, skew int, extra ...*TableEntry)
func (*CertMonitorUI) TableX509Cert ¶ added in v1.6.0
func (u *CertMonitorUI) TableX509Cert(cert *x509.Certificate, skew int, extra ...*TableEntry) string
type TLSScan ¶ added in v1.6.0
type TLSScan struct {
SNI string
TlsVersion string
Chain []*x509.Certificate
}
type TableEntry ¶ added in v1.6.0
func (*TableEntry) AsSlice ¶ added in v1.6.0
func (e *TableEntry) AsSlice() []string
Click to show internal directories.
Click to hide internal directories.