certificate

package
v1.5.10 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCaCertPool added in v1.3.1

func GetCaCertPool() *x509.CertPool

GetCaCertPool returns the client cert pool (CA root) loaded from local storage

func GetClientCertificate added in v1.3.1

func GetClientCertificate() *tls.Certificate

GetClientCertificate returns the client certificate loaded from local storage

func GetServerCertificate

func GetServerCertificate() *tls.Certificate

GetServerCertificate returns the server certificate loaded from local storage

func HasClientCert added in v1.3.2

func HasClientCert() bool

HasClientCert returns whether a client certificate is available for runtime or not

func Initialize

func Initialize(
	serveHTTPS bool,
	serverCertContent string,
	serverKeyContent string,
	validateClientCert bool,
	caCertContent string,
	clientCertContent string,
	clientKeyContent string,
) error

Initialize initializes the certificates used by the application

Types

This section is empty.

Jump to

Keyboard shortcuts

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