vault

package
v0.0.0-...-1a56975 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 3 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

This section is empty.

Types

type CA

type CA struct {
}

CA connects to Vault to sign certificates.

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