pki

package
v0.0.0-...-b274fa0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateAuthority

type CertificateAuthority struct {
	// contains filtered or unexported fields
}

func NewCertificateAuthority

func NewCertificateAuthority(cli *vaultapi.Client) (*CertificateAuthority, error)

NewCertificateAuthority mounts PKI secrets engines using the client, then returns a CertificateAuthority which will use them to generate certs.

func NewExternalCertificateAuthority

func NewExternalCertificateAuthority(vaultAddr, vaultToken string) (*CertificateAuthority, error)

func (*CertificateAuthority) ConsulServerTLS

func (ca *CertificateAuthority) ConsulServerTLS(ctx context.Context, ip, ttl string) (*TLSConfigPEM, error)

func (*CertificateAuthority) NomadServerTLS

func (ca *CertificateAuthority) NomadServerTLS(ctx context.Context, ip, ttl string) (*TLSConfigPEM, error)

func (*CertificateAuthority) VaultServerTLS

func (ca *CertificateAuthority) VaultServerTLS(ctx context.Context, ip, ttl string) (*TLSConfigPEM, error)

type TLSConfigPEM

type TLSConfigPEM struct {
	CA         string
	Cert       string
	PrivateKey string
}

Jump to

Keyboard shortcuts

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