Documentation
¶
Overview ¶
Package cert provide useful functions to generate certificates
Package cert provide useful functions to generate certificates
Index ¶
- func FetchIPCCert(config configModel.Reader) (*tls.Config, *tls.Config, *tls.Config, error)
- func FetchOrCreateIPCCert(ctx context.Context, config configModel.Reader) (*tls.Config, *tls.Config, *tls.Config, error)
- func GetTLSConfigFromCert(ipccert, ipckey []byte) (*tls.Config, *tls.Config, error)
- type Certificate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchIPCCert ¶ added in v0.64.0
FetchIPCCert loads certificate file used to authenticate IPC communicates
func FetchOrCreateIPCCert ¶ added in v0.64.0
func FetchOrCreateIPCCert(ctx context.Context, config configModel.Reader) (*tls.Config, *tls.Config, *tls.Config, error)
FetchOrCreateIPCCert loads or creates certificate file used to authenticate IPC communicates It takes a context to allow for cancellation or timeout of the operation
func GetTLSConfigFromCert ¶ added in v0.69.0
GetTLSConfigFromCert returns the TLS configs for the client and server using the provided IPC certificate and key. It returns the client and server TLS configurations, or an error if the certificate or key cannot be parsed. It expects the certificate and key to be in PEM format.
Types ¶
type Certificate ¶ added in v0.64.0
type Certificate struct {
// contains filtered or unexported fields
}
Certificate contains certificate and key pair (in PEM format) used to communicate between Agent processes