cert

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertConfig

type CertConfig struct {
	SkipVerify   bool
	Verbose      bool
	Hostname     string
	OutputDir    string
	OutputFormat string
	Password     string
	AltNames     string
	IPsans       string
	URISans      string
	// contains filtered or unexported fields
}

CertConfig object describes the configuration for bmcert

func (*CertConfig) CreateCertificate

func (config *CertConfig) CreateCertificate() (SignedCertificate, error)

CreateCertificate calls the Vault API and returns a signed certifcate

func (*CertConfig) Init

func (config *CertConfig) Init()

Init sets runtime variables such as tls skip verify

func (*CertConfig) WriteCert

func (config *CertConfig) WriteCert(c SignedCertificate) error

Write the certificate to disk

type SignedCertificate

type SignedCertificate struct {
	Certificate      string `json:"certificate"`
	Issuing_ca       string `json:"issuing_ca"`
	Private_key      string `json:"private_key"`
	Private_key_type string `json:"private_key_type"`
	Serial_number    string `json:"serial_number"`
}

SignedCertificate object describes a certificate signed by Vault

Jump to

Keyboard shortcuts

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