Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertWithKey ¶
type CertWithKey struct { Name string Thumbprint string ShouldRenewAt time.Time PrivateKey *rsa.PrivateKey Certificate *x509.Certificate }
func NewCertWithKey ¶
func NewCertWithKey(name string, minTTL, maxTTL time.Duration) (*CertWithKey, error)
type CertificateManager ¶
type CertificateManager struct { *CertificateValidator // contains filtered or unexported fields }
func NewCertificateManager ¶
func NewCertificateManager(serverStore store.ServerStore, config *config.StoreConfig, parent logging.Logger) *CertificateManager
func (*CertificateManager) Close ¶
func (s *CertificateManager) Close() error
func (*CertificateManager) GetSelfCertificate ¶
func (s *CertificateManager) GetSelfCertificate() (*CertWithKey, error)
type CertificateVO ¶
type CertificateVO struct { X5t string `json:"x5t"` ExpiresAt int64 `json:"expires_at"` Certificate string `json:"certificate"` PublicKey string `json:"public_key"` }
func NewCertificateVO ¶
func NewCertificateVO(certificate *x509.Certificate) *CertificateVO
type CertificateValidator ¶
type CertificateValidator struct {
// contains filtered or unexported fields
}
func NewCertificateValidator ¶
func NewCertificateValidator(agentStore store.AgentStore, config *config.StoreConfig, parent logging.Logger) *CertificateValidator
func (*CertificateValidator) FindCertificate ¶
func (s *CertificateValidator) FindCertificate(thumbprint string) (*x509.Certificate, error)
func (*CertificateValidator) ListAllCertificates ¶
func (s *CertificateValidator) ListAllCertificates() ([]*x509.Certificate, error)
Click to show internal directories.
Click to hide internal directories.