source

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

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) ClientCAs

func (s ServerPEMs) ClientCAs() (*x509.CertPool, error)

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)
}

Jump to

Keyboard shortcuts

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