ca

package
v0.179.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

README

Certificate Authority Key Pair Generation

The following command will generate a new self-signed CA certificate and private key in PEM format for use with the E2E proxy.

./generate-ca-keypair.sh

When prompted, press enter to accept the default values.

Country Name (2 letter code) [US]:
State or Province Name (full name) [New York]:
Locality Name (eg, city) [New York]:
Organization Name (eg, company) [Grafana Labs]:
Organizational Unit Name (eg, section) [Grafana Labs]:
Common Name (e.g. server FQDN or YOUR name) [grafana.com]:
Email Address [info@grafana.com]:

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CACertificate []byte

CACertificate Certificate Authority certificate used by the proxy.

View Source
var CAKey []byte

CAKey Certificate Authority private key used by the proxy.

Functions

func GetCertificate

func GetCertificate(certPath, keyPath string) (tls.Certificate, error)

Loads the CA key pair from the provided paths, and falls back to the default key pair if paths are not provided.

func LoadKeyPair

func LoadKeyPair(certPath, keyPath string) ([]byte, []byte, error)

Loads the CA key pair from the provided paths.

Types

This section is empty.

Jump to

Keyboard shortcuts

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