vault

package
v0.0.0-...-865e90e Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package vault provides adapter to connect to vault server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunProtoTypeSignCsrFlow

func RunProtoTypeSignCsrFlow() error

RunProtoTypeSignCsrFlow runs a prototyping signCsr flow, includes: - Create a connection to Vault - Mount Vault PKI - Set CA signing key and cert - Set workload role for issuing certificates - Sign CSR and print the certificate signed

Types

type CA

type CA struct {
}

CA connects to Vault to sign certificates.

func New

func New() (*CA, error)

New returns a new CA instance.

func (*CA) GetKeyCertBundle

func (v *CA) GetKeyCertBundle() util.KeyCertBundle

GetKeyCertBundle returns the KeyCertBundle for the CA.

func (*CA) Sign

func (v *CA) Sign(csrPEM []byte, ttl time.Duration) ([]byte, error)

Sign takes a PEM-encoded CSR and returns a signed certificate. If the CA is a multicluster CA, the signed certificate is a CA certificate (CA:TRUE in X509v3 Basic Constraints), otherwise, it is a workload certificate.

func (*CA) SignCAServerCert

func (v *CA) SignCAServerCert(csrPEM []byte, ttl time.Duration) ([]byte, error)

SignCAServerCert signs the certificate for the Istio CA server (to serve the CSR, etc).

Jump to

Keyboard shortcuts

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