Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrValidityPeriodExpired = errors.New("Declining to issue certificate which expires within 30 seconds.")
Functions ¶
Types ¶
type Config ¶
type Config struct { Subject *dname.Config `yaml:"subject" flags:""` Names san.Names `yaml:"subjectAltNames" flags:"subject-alt-name,set cert subjectAltNames,san"` KeyUsage keyusage.KeyUsage `yaml:"keyUsage" flags:"key-usage,what the key/cert is used for (tlsServer, tlsClient, tlsClientServer),ku"` 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"` // Don't create issuedb entry. NoIssueDBEntry bool }
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.