cert

package
v0.73.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Overview

Package cert provide useful functions to generate certificates

Package cert provide useful functions to generate certificates

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchIPCCert added in v0.64.0

func FetchIPCCert(config configModel.Reader) (*tls.Config, *tls.Config, *tls.Config, error)

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

func GetTLSConfigFromCert(ipccert, ipckey []byte) (*tls.Config, *tls.Config, error)

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

Jump to

Keyboard shortcuts

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