Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRevokedSerialNumbers ¶
func NewRevokedSerialNumbers(clientCRLs []*x509.RevocationList) map[string]struct{}
Types ¶
type ServerCerts ¶
type ServerCerts struct { Certificates []tls.Certificate ClientCAs *x509.CertPool ClientCRLs []*x509.RevocationList Checksum []byte RevokedSerialNumbers map[string]struct{} }
func (*ServerCerts) GetChecksum ¶
func (s *ServerCerts) GetChecksum() []byte
func (*ServerCerts) IsClientCertRevoked ¶
func (s *ServerCerts) IsClientCertRevoked(serialNumber *big.Int) bool
type ServerCertsSource ¶
type ServerCertsSource interface {
ServerCerts() chan ServerCerts
}
type ServerCertsStore ¶
type ServerCertsStore struct {
// contains filtered or unexported fields
}
func NewServerCertsStore ¶
func NewServerCertsStore(logger *slog.Logger) *ServerCertsStore
func (*ServerCertsStore) LoadServerCerts ¶
func (s *ServerCertsStore) LoadServerCerts() ServerCerts
func (*ServerCertsStore) SetServerCerts ¶
func (s *ServerCertsStore) SetServerCerts(certs ServerCerts)
type ServerPEMs ¶
type ServerPEMs struct { CertPEMBlock []byte KeyPEMBlock []byte ClientAuthPEMBlock []byte CRLPEMBlock []byte }
func (ServerPEMs) Certificates ¶
func (s ServerPEMs) Certificates() ([]tls.Certificate, error)
func (ServerPEMs) Checksum ¶
func (s ServerPEMs) Checksum() []byte
func (ServerPEMs) ClientCRLs ¶
func (s ServerPEMs) ClientCRLs() ([]*x509.RevocationList, error)
func (ServerPEMs) ValidateCRLs ¶
func (s ServerPEMs) ValidateCRLs() error
type ServerPEMsLoader ¶
type ServerPEMsLoader interface {
Load() (*ServerPEMs, error)
}
Click to show internal directories.
Click to hide internal directories.