Documentation
¶
Index ¶
- type CRLFetchCmd
- type CertInfoCmd
- type CertValidateCmd
- type CertsCmd
- type Cli
- func (c *Cli) AfterApply(app *kong.Kong, vars kong.Vars) error
- func (c *Cli) Context() context.Context
- func (c *Cli) ErrWriter() io.Writer
- func (c *Cli) ReadFile(filename string) ([]byte, error)
- func (c *Cli) Reader() io.Reader
- func (c *Cli) WithErrWriter(out io.Writer) *Cli
- func (c *Cli) WithReader(reader io.Reader) *Cli
- func (c *Cli) WithWriter(out io.Writer) *Cli
- func (c *Cli) WriteJSON(value interface{}) error
- func (c *Cli) Writer() io.Writer
- type CrlCmd
- type CrlInfoCmd
- type CsrInfoCmd
- type OcspInfoCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRLFetchCmd ¶
type CRLFetchCmd struct {
Cert string `kong:"arg" required:"" help:"certificate file name"`
Output string `required:"" help:"output folder name"`
All bool `help:"fetch entire chain"`
Print bool
}
CRLFetchCmd specifies flags for CRLFetch action
type CertInfoCmd ¶
type CertInfoCmd struct {
In string `kong:"arg" required:"" help:"certificate file name"`
Out string `help:"optional, output file to save parsed certificates"`
NotAfter string `help:"optional, filter certificates by NotAfter time"`
NoExpired *bool `help:"optional, filter non-expired certificates"`
Extensions bool `help:"optional, print extensions values"`
}
CertInfoCmd specifies flags for CertInfo action
type CertValidateCmd ¶
type CertValidateCmd struct {
Cert string `kong:"arg" required:"" help:"certificate file name"`
CA string `help:"optional, CA bundle file"`
Root string `help:"optional, Trusted Roots file"`
Out string `help:"optional, output file to save certificate chain"`
}
CertValidateCmd specifies flags for Validate action
type CertsCmd ¶
type CertsCmd struct {
Info CertInfoCmd `cmd:"" help:"print certificate info"`
Validate CertValidateCmd `cmd:"" help:"validates certificate"`
}
CertsCmd provides certificates commands
type Cli ¶
type Cli struct {
Version ctl.VersionFlag `name:"version" help:"Print version information and quit" hidden:""`
// contains filtered or unexported fields
}
Cli provides CLI context to run commands
func (*Cli) AfterApply ¶
AfterApply hook loads config
func (*Cli) WithErrWriter ¶
WithErrWriter allows to specify a custom error writer
func (*Cli) WithReader ¶
WithReader allows to specify a custom reader
func (*Cli) WithWriter ¶
WithWriter allows to specify a custom writer
type CrlCmd ¶
type CrlCmd struct {
Info CrlInfoCmd `cmd:"" help:"print CRL info"`
Fetch CRLFetchCmd `cmd:"" help:"fetch CRL"`
}
CrlCmd provides commands for CRL
type CrlInfoCmd ¶
type CrlInfoCmd struct {
Crl string `kong:"arg" required:"" help:"CSR file name"`
}
CrlInfoCmd specifies flags for Info command
type CsrInfoCmd ¶
type CsrInfoCmd struct {
Csr string `kong:"arg" required:"" help:"CSR file name"`
}
CsrInfoCmd specifies flags for Info command
type OcspInfoCmd ¶
type OcspInfoCmd struct {
Ocsp string `kong:"arg" required:"" help:"OCSP file name"`
}
OcspInfoCmd specifies flags for Info command
Click to show internal directories.
Click to hide internal directories.