pki

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const FlagCaClientName = "client-name"
View Source
const FlagCaIntermediateName = "intermediate-name"
View Source
const FlagCaName = "ca-name"
View Source
const FlagCaServerName = "server-name"

Variables

This section is empty.

Functions

func NewCmdPKI

func NewCmdPKI(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdPKI PKIs a command object for the "PKI" command

func NewCmdPKICreate

func NewCmdPKICreate(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdPKICreate creates a command object for the "create" command

func NewCmdPKICreateCA

func NewCmdPKICreateCA(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdPKICreateCA creates a command object for the "create" command

func NewCmdPKICreateCSR

func NewCmdPKICreateCSR(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdPKICreateCSR creates a command object for the "create" command

func NewCmdPKICreateClient

func NewCmdPKICreateClient(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdPKICreateClient creates a command object for the "create" command

func NewCmdPKICreateIntermediate

func NewCmdPKICreateIntermediate(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdPKICreateIntermediate creates a command object for the "create" command

func NewCmdPKICreateKey

func NewCmdPKICreateKey(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdPKICreateKey creates a command object for the "create" command

func NewCmdPKICreateServer

func NewCmdPKICreateServer(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdPKICreateServer creates a command object for the "create" command

Types

type PKICreateCAOptions

type PKICreateCAOptions struct {
	PKICreateOptions
}

PKICreateCAOptions the options for the create spring command

func (*PKICreateCAOptions) Run

func (o *PKICreateCAOptions) Run() error

Run implements this command

type PKICreateCSROptions

type PKICreateCSROptions struct {
	PKICreateOptions
}

PKICreateCSROptions the options for the create spring command

func (*PKICreateCSROptions) Run

func (o *PKICreateCSROptions) Run() error

Run implements this command

type PKICreateClientOptions

type PKICreateClientOptions struct {
	PKICreateOptions
}

PKICreateClientOptions the options for the create spring command

func (*PKICreateClientOptions) Run

func (o *PKICreateClientOptions) Run() error

Run implements this command

type PKICreateIntermediateOptions

type PKICreateIntermediateOptions struct {
	PKICreateOptions
}

PKICreateIntermediateOptions the options for the create spring command

func (*PKICreateIntermediateOptions) Run

Run implements this command

type PKICreateKeyOptions

type PKICreateKeyOptions struct {
	PKICreateOptions
}

PKICreateKeyOptions the options for the create spring command

func (*PKICreateKeyOptions) Run

func (o *PKICreateKeyOptions) Run() error

Run implements this command

type PKICreateOptions

type PKICreateOptions struct {
	PKIOptions
}

PKICreateOptions the options for the create spring command

func (*PKICreateOptions) ObtainCAFile

func (o *PKICreateOptions) ObtainCAFile() (string, error)

ObtainCAFile returns the value for ca-file

func (*PKICreateOptions) ObtainCAName

func (o *PKICreateOptions) ObtainCAName(pkiRoot string) (string, error)

ObtainCAName returns the value for ca-name

func (*PKICreateOptions) ObtainCSRFile

func (o *PKICreateOptions) ObtainCSRFile() (string, error)

ObtainCSRFile returns the value for csr-file

func (*PKICreateOptions) ObtainClientCertFile

func (o *PKICreateOptions) ObtainClientCertFile() (string, error)

ObtainClientCertFile returns the value for client-file

func (*PKICreateOptions) ObtainCommonName

func (o *PKICreateOptions) ObtainCommonName() (string, error)

ObtainCommonName returns the value for CN

func (*PKICreateOptions) ObtainFileName

func (o *PKICreateOptions) ObtainFileName(caFile string, commonName string) string

ObtainFileName returns the value for the 'name' used in the PKI request

func (*PKICreateOptions) ObtainIPsAndDNSNames

func (o *PKICreateOptions) ObtainIPsAndDNSNames() ([]net.IP, []string, error)

ObtainIPsAndDNSNames returns the IP address and/or DNS names used in the PKI request template

func (*PKICreateOptions) ObtainIntermediateCAFile

func (o *PKICreateOptions) ObtainIntermediateCAFile() (string, error)

ObtainIntermediateCAFile returns the value for intermediate-file

func (*PKICreateOptions) ObtainIntermediateCSRFile

func (o *PKICreateOptions) ObtainIntermediateCSRFile() (string, error)

ObtainIntermediateCSRFile returns the value for intermediate-file

func (*PKICreateOptions) ObtainKeyFile

func (o *PKICreateOptions) ObtainKeyFile(required bool) (string, error)

ObtainKeyFile returns the value for key-file

func (*PKICreateOptions) ObtainKeyName

func (o *PKICreateOptions) ObtainKeyName(pkiRoot string) (string, error)

ObtainKeyName returns the private key from the key-file

func (*PKICreateOptions) ObtainPKICSRRequestTemplate

func (o *PKICreateOptions) ObtainPKICSRRequestTemplate(commonName string) *x509.CertificateRequest

ObtainPKICSRRequestTemplate returns the CSR 'template' used in the PKI request

func (*PKICreateOptions) ObtainPKIRequestTemplate

func (o *PKICreateOptions) ObtainPKIRequestTemplate(commonName string) *x509.Certificate

ObtainPKIRequestTemplate returns the 'template' used in the PKI request

func (*PKICreateOptions) ObtainPKIRoot

func (o *PKICreateOptions) ObtainPKIRoot() (string, error)

ObtainPKIRoot returns the value for pki-root

func (*PKICreateOptions) ObtainPrivateKeyOptions

func (o *PKICreateOptions) ObtainPrivateKeyOptions() (pki.PrivateKeyOptions, error)

ObtainPrivateKeyOptions returns the private key options necessary to generate a private key

func (*PKICreateOptions) ObtainServerCertFile

func (o *PKICreateOptions) ObtainServerCertFile() (string, error)

ObtainServerCertFile returns the value for server-file

func (*PKICreateOptions) Run

func (o *PKICreateOptions) Run() error

Run implements this command

type PKICreateServerOptions

type PKICreateServerOptions struct {
	PKICreateOptions
}

PKICreateServerOptions the options for the create spring command

func (*PKICreateServerOptions) Run

func (o *PKICreateServerOptions) Run() error

Run implements this command

type PKIFlags

type PKIFlags struct {
	PKIRoot               string
	PKIOrganization       string
	PKIOrganizationalUnit string
	PKICountry            string
	PKILocality           string
	PKIProvince           string
	CAFile                string
	CAName                string
	CommonName            string
	CAExpire              int
	CAMaxPath             int
	CAPrivateKeySize      int
	IntermediateFile      string
	IntermediateName      string
	ServerFile            string
	ServerName            string
	ClientFile            string
	ClientName            string
	KeyFile               string
	CSRFile               string
	CSRName               string
	KeyName               string
	DNSName               []string
	IP                    []string
	Email                 []string
	PKI                   *pki.ZitiPKI
	SpiffeID              string
	AllowOverwrite        bool
	EcCurve               string
}

type PKIOptions

type PKIOptions struct {
	common.CommonOptions

	Flags PKIFlags
}

PKIOptions contains the command line options

func (*PKIOptions) Run

func (o *PKIOptions) Run() error

Run implements this command

Jump to

Keyboard shortcuts

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