Documentation ¶
Index ¶
- Constants
- func NewCmdPKI(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdPKICreate(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdPKICreateCA(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdPKICreateCSR(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdPKICreateClient(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdPKICreateIntermediate(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdPKICreateKey(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdPKICreateServer(out io.Writer, errOut io.Writer) *cobra.Command
- type PKICreateCAOptions
- type PKICreateCSROptions
- type PKICreateClientOptions
- type PKICreateIntermediateOptions
- type PKICreateKeyOptions
- type PKICreateOptions
- func (o *PKICreateOptions) ObtainCAFile() (string, error)
- func (o *PKICreateOptions) ObtainCAName(pkiRoot string) (string, error)
- func (o *PKICreateOptions) ObtainCSRFile() (string, error)
- func (o *PKICreateOptions) ObtainClientCertFile() (string, error)
- func (o *PKICreateOptions) ObtainCommonName() (string, error)
- func (o *PKICreateOptions) ObtainFileName(caFile string, commonName string) string
- func (o *PKICreateOptions) ObtainIPsAndDNSNames() ([]net.IP, []string, error)
- func (o *PKICreateOptions) ObtainIntermediateCAFile() (string, error)
- func (o *PKICreateOptions) ObtainIntermediateCSRFile() (string, error)
- func (o *PKICreateOptions) ObtainKeyFile(required bool) (string, error)
- func (o *PKICreateOptions) ObtainKeyName(pkiRoot string) (string, error)
- func (o *PKICreateOptions) ObtainPKICSRRequestTemplate(commonName string) *x509.CertificateRequest
- func (o *PKICreateOptions) ObtainPKIRequestTemplate(commonName string) *x509.Certificate
- func (o *PKICreateOptions) ObtainPKIRoot() (string, error)
- func (o *PKICreateOptions) ObtainPrivateKeyOptions() (pki.PrivateKeyOptions, error)
- func (o *PKICreateOptions) ObtainServerCertFile() (string, error)
- func (o *PKICreateOptions) Run() error
- type PKICreateServerOptions
- type PKIFlags
- type PKIOptions
Constants ¶
const FlagCaClientName = "client-name"
const FlagCaIntermediateName = "intermediate-name"
const FlagCaName = "ca-name"
const FlagCaServerName = "server-name"
Variables ¶
This section is empty.
Functions ¶
func NewCmdPKICreate ¶
NewCmdPKICreate creates a command object for the "create" command
func NewCmdPKICreateCA ¶
NewCmdPKICreateCA creates a command object for the "create" command
func NewCmdPKICreateCSR ¶
NewCmdPKICreateCSR creates a command object for the "create" command
func NewCmdPKICreateClient ¶
NewCmdPKICreateClient creates a command object for the "create" command
func NewCmdPKICreateIntermediate ¶
NewCmdPKICreateIntermediate creates a command object for the "create" command
func NewCmdPKICreateKey ¶
NewCmdPKICreateKey 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 ¶
func (o *PKICreateIntermediateOptions) Run() error
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
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