vaultcas

package
v0.22.2-rc17 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VaultCAS

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

VaultCAS implements a Certificate Authority Service using Hashicorp Vault.

func New

func New(ctx context.Context, opts apiv1.Options) (*VaultCAS, error)

New creates a new CertificateAuthorityService implementation using Hashicorp Vault

func (*VaultCAS) CreateCertificate

CreateCertificate signs a new certificate using Hashicorp Vault.

func (*VaultCAS) GetCertificateAuthority

GetCertificateAuthority returns the root certificate of the certificate authority using the configured fingerprint.

func (*VaultCAS) RenewCertificate

RenewCertificate will always return a non-implemented error as renewals are not supported yet.

func (*VaultCAS) RevokeCertificate

RevokeCertificate revokes a certificate by serial number.

type VaultOptions

type VaultOptions struct {
	PKIMountPath   string          `json:"pkiMountPath,omitempty"`
	PKIRoleDefault string          `json:"pkiRoleDefault,omitempty"`
	PKIRoleRSA     string          `json:"pkiRoleRSA,omitempty"`
	PKIRoleEC      string          `json:"pkiRoleEC,omitempty"`
	PKIRoleEd25519 string          `json:"pkiRoleEd25519,omitempty"`
	AuthType       string          `json:"authType,omitempty"`
	AuthMountPath  string          `json:"authMountPath,omitempty"`
	AuthOptions    json.RawMessage `json:"authOptions,omitempty"`
}

VaultOptions defines the configuration options added using the apiv1.Options.Config field.

Directories

Path Synopsis
auth

Jump to

Keyboard shortcuts

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