Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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"` NameConstraints NameConstraints `yaml:"nameConstraints"` }
func ConfigFromCert ¶
func ConfigFromCert(cert *x509.Certificate) (*Config, error)
func DefaultConfig ¶
func EmptyConfig ¶
func EmptyConfig() *Config
func (*Config) CompatibleWith ¶
type NameConstraints ¶ added in v0.2.1
type NameConstraints struct { PermittedDNSDomains []string ExcludedDNSDomains []string PermittedIPRanges []*net.IPNet ExcludedIPRanges []*net.IPNet }
func (*NameConstraints) IsEmpty ¶ added in v0.2.1
func (nc *NameConstraints) IsEmpty() bool
func (*NameConstraints) Strings ¶ added in v0.2.1
func (nc *NameConstraints) Strings() []string
func (*NameConstraints) UnmarshalYAML ¶ added in v0.2.1
func (p *NameConstraints) UnmarshalYAML(unmarshal func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.