seed

package
v1.2.2-dev.63 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateSeed

type CertificateSeed struct {
	CACertFile  string
	CACountry   string
	CAKeyFile   string
	CALocality  string
	CAName      string
	CAOrg       string
	CAState     string
	DumpKeys    bool
	ECCurve     EllipticCurve
	ECScheme    bool
	NewCA       bool
	RSAKeySize  RSAKeySize
	RSAScheme   bool
	TLSAltFqdn  string
	TLSCertFile string
	TLSCountry  string
	TLSDomain   string
	TLSFqdn     string
	TLSHost     string
	TLSKeyFile  string
	TLSLocality string
	TLSOrg      string
	TLSState    string
}

CertificateSeed is responsible for parsing the X509 configuration into values that can be readily used to generate Root CA and TLS-related certificates. It will also validate the configuration provided to it upon instantiation.

func NewCertificateSeed

func NewCertificateSeed(cfg secretsConfig.X509, directory contract.DirectoryHandler) (seed CertificateSeed, err error)

type EllipticCurve

type EllipticCurve int
const (
	EC_224 EllipticCurve = 224
	EC_256 EllipticCurve = 256
	EC_384 EllipticCurve = 384
	EC_521 EllipticCurve = 521
)

type RSAKeySize

type RSAKeySize int
const (
	RSA_1024 RSAKeySize = 1024
	RSA_2048 RSAKeySize = 2048
	RSA_4096 RSAKeySize = 4096
)

Jump to

Keyboard shortcuts

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