ui

package
v1.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCertificate

func CheckCertificate(cert *x509.Certificate, clockSkewDays int, logger hclog.Logger) bool

CheckCertificate check certificate expiration with skewed days

func IsValid added in v1.6.0

func IsValid(cert *x509.Certificate, clockSkewDays int) bool

IsValid check certificate expiration with skewed days

func MakeUILogger

func MakeUILogger(debug bool, noText bool, noColor bool) hclog.Logger

Types

type CertMonitorUI

type CertMonitorUI struct {
	Logger hclog.Logger
	// contains filtered or unexported fields
}

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
}

func (*TLSScan) String added in v1.6.0

func (s *TLSScan) String() string

type TableEntry added in v1.6.0

type TableEntry struct {
	Key   string
	Value string
}

func (*TableEntry) AsSlice added in v1.6.0

func (e *TableEntry) AsSlice() []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL