certs

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package certs contains utility methods for reading and verifying the certificates needed to configure a Fleetspeak installation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServerCert

func GetServerCert(cfg *cpb.Config, ca *x509.Certificate, caPriv any) (cert, key []byte, err error)

GetServerCert returns the server certificate associated with cfg, creating it if necessary. If available, priv is the private key associated with cert.

func GetTrustedCert

func GetTrustedCert(cfg *cpb.Config) (cert *x509.Certificate, priv any, pem []byte, err error)

GetTrustedCert returns the trusted certificate associated with cfg, creating it if necessary. If available, priv is the private key associated with cert.

Types

This section is empty.

Jump to

Keyboard shortcuts

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