Documentation
¶
Index ¶
- Constants
- Variables
- func ActionImpl(caSubjectFunc CASubjectFunc, issueFunc IssueFunc) func(*cli.Context) error
- func EnsurePrivateKey(env *action.Environment, ktype wcrypto.KeyType, privPath string) (crypto.PrivateKey, error)
- func PrepareKeyTypePath(env *action.Environment, ktype *wcrypto.KeyType, privPath *string) error
- func PromptCertPath(env *action.Environment, privPath, certPath string) (string, error)
- func VerifyKeyType(path string, expected wcrypto.KeyType) (crypto.PublicKey, error)
- type CASubjectFunc
- type CertStillValidErr
- type Config
- type IncompatibleCertErr
- type IssueFunc
- type UnexpectedKeyTypeErr
Constants ¶
View Source
const ConfigTemplateText = `` /* 2028-byte string literal not displayed */
FIXME[P2]: Help msg for keyType FIXME[P2]: Should escape
Variables ¶
View Source
var Command = &cli.Command{ Name: "issue", Usage: "Issue a new certificate or renew an existing certificate. Generates private key if needed.", Flags: append(structflags.MustPopulateFlagsFromStruct(Config{}), &cli.BoolFlag{ Name: "dump-template", Usage: "dump configuration template yaml without making actual changes", }, ), Action: ActionImpl(localCASubject, localIssue), }
View Source
var ErrCertKeyPathConflict = errors.New("Specified path conflicts with private key output path.")
Functions ¶
func ActionImpl ¶ added in v0.1.0
func ActionImpl(caSubjectFunc CASubjectFunc, issueFunc IssueFunc) func(*cli.Context) error
func EnsurePrivateKey ¶ added in v0.1.0
func EnsurePrivateKey(env *action.Environment, ktype wcrypto.KeyType, privPath string) (crypto.PrivateKey, error)
func PrepareKeyTypePath ¶ added in v0.1.0
func PromptCertPath ¶
func PromptCertPath(env *action.Environment, privPath, certPath string) (string, error)
Types ¶
type CASubjectFunc ¶ added in v0.1.0
type CASubjectFunc func(env *action.Environment) *dname.Config
type CertStillValidErr ¶ added in v0.1.0
func (CertStillValidErr) Error ¶ added in v0.1.0
func (e CertStillValidErr) Error() string
func (CertStillValidErr) Is ¶ added in v0.1.0
func (CertStillValidErr) Is(target error) bool
type Config ¶
type Config struct {
PrivateKeyPath string `yaml:"privateKeyPath" flags:"priv,private key input/output path,,path"`
CertPath string `yaml:"certPath" flags:"cert,cert input/output path,,path"`
Issue *issue.Config `yaml:"issue" flags:""`
RenewBefore period.Days `` /* 126-byte string literal not displayed */
// This is here to avoid UnmarshalStrict throw error when noDefault was specified for ShouldLoadDefaults().
XXX_NoDefault bool `yaml:"noDefault"`
}
type IncompatibleCertErr ¶ added in v0.1.0
type IncompatibleCertErr struct {
Wrap error
}
func (IncompatibleCertErr) Error ¶ added in v0.1.0
func (e IncompatibleCertErr) Error() string
func (IncompatibleCertErr) Is ¶ added in v0.1.0
func (IncompatibleCertErr) Is(target error) bool
func (IncompatibleCertErr) Unwrap ¶ added in v0.1.0
func (e IncompatibleCertErr) Unwrap() error
type UnexpectedKeyTypeErr ¶ added in v0.1.0
func (UnexpectedKeyTypeErr) Error ¶ added in v0.1.0
func (e UnexpectedKeyTypeErr) Error() string
func (UnexpectedKeyTypeErr) Is ¶ added in v0.1.0
func (UnexpectedKeyTypeErr) Is(target error) bool
Click to show internal directories.
Click to hide internal directories.