Documentation ¶
Overview ¶
Package certinel defines the Certinel and Runnable interfaces for watching for implementing zero-hit rotations of TLS certificates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certinel ¶
type Certinel interface { GetCertificate(chi *tls.ClientHelloInfo) (*tls.Certificate, error) GetClientCertificate(cri *tls.CertificateRequestInfo) (*tls.Certificate, error) }
A Certinel implementation watches certificates for changes, and returns the desired certificate when requested by Go's crypto/tls implementation.
type Runnable ¶ added in v0.4.0
type Runnable interface { // Start starts running the asynchronous actions that make up the Certinel // instances. The instance will stop running when the context is closed. // Start blocks until the context is closed or an error occures. Start(ctx context.Context) error }
Runnable is implemented by Certinel instances that perform asynchronous actions.
Directories ¶
Path | Synopsis |
---|---|
Package fswatcher implements the Certinel interface by watching for filesystem change events using the cross-platform fsnotify package.
|
Package fswatcher implements the Certinel interface by watching for filesystem change events using the cross-platform fsnotify package. |
internel
|
|
pkitest
Package pkitest provides a few utility functions shared across tests.
|
Package pkitest provides a few utility functions shared across tests. |
Package ticker implements the Certinel interface by polling the filesystem at a regular interval.
|
Package ticker implements the Certinel interface by polling the filesystem at a regular interval. |
Click to show internal directories.
Click to hide internal directories.