Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSubjectEmpty = errors.New("CA Subject must not be empty.")
)
View Source
var ErrValidityPeriodExpired = errors.New("Declining to setup CA which expires within 30 seconds.")
Functions ¶
Types ¶
type Config ¶
type Config struct { Subject *dname.Config `yaml:"subject" flags:""` Validity period.ValidityPeriod `yaml:"validity" flags:"validity,time duration/timestamp where the cert is valid to (examples: 30d, 1y, 20220530)"` KeyType wcrypto.KeyType `yaml:"keyType" flags:"key-type,private key type (rsa, ecdsa),t"` }
func ConfigFromCert ¶
func ConfigFromCert(cert *x509.Certificate) (*Config, error)
func DefaultConfig ¶
func EmptyConfig ¶
func EmptyConfig() *Config
func (*Config) CompatibleWith ¶
Click to show internal directories.
Click to hide internal directories.