Versions in this module Expand all Collapse all v0 v0.0.2 Jan 22, 2021 v0.0.1 Jan 22, 2021 Changes in this version + var ExtKeyUsage = map[string]x509.ExtKeyUsage + var KeyUsage = map[string]x509.KeyUsage + type AuthKey struct + Key string + Type string + type AuthRemote struct + AuthKeyName string + RemoteName string + type CAConstraint struct + IsCA bool + MaxPathLen int + MaxPathLenZero bool + type CSRWhitelist struct + DNSNames bool + EmailAddresses bool + IPAddresses bool + PublicKey bool + PublicKeyAlgorithm bool + SignatureAlgorithm bool + Subject bool + URIs bool + type CertificatePolicy struct + ID OID + Qualifiers []CertificatePolicyQualifier + type CertificatePolicyQualifier struct + Type string + Value string + type Config struct + AuthKeys map[string]AuthKey + OCSP *ocspConfig.Config + Remotes map[string]string + Signing *Signing + func LoadConfig(config []byte) (*Config, error) + func LoadFile(path string) (*Config, error) + func (c *Config) Valid() bool + type OID asn1.ObjectIdentifier + func (oid *OID) UnmarshalJSON(data []byte) (err error) + func (oid OID) MarshalJSON() ([]byte, error) + type Signing struct + Default *SigningProfile + Profiles map[string]*SigningProfile + func (p *Signing) NeedsLocalSigner() bool + func (p *Signing) NeedsRemoteSigner() bool + func (p *Signing) OverrideRemotes(remote string) error + func (p *Signing) SetClientCertKeyPairFromFile(certFile string, keyFile string) error + func (p *Signing) SetRemoteCAs(remoteCAs *x509.CertPool) + func (p *Signing) SetRemoteCAsFromFile(caFile string) error + func (p *Signing) Valid() bool + type SigningProfile struct + AllowedExtensions []OID + AuthKeyName string + AuthRemote AuthRemote + Backdate time.Duration + BackdateString string + CAConstraint CAConstraint + CRL string + CSRWhitelist *CSRWhitelist + CTLogServers []string + CertStore string + ClientCert *tls.Certificate + ClientProvidesSerialNumbers bool + Expiry time.Duration + ExpiryString string + ExtensionWhitelist map[string]bool + IgnoredLints []string + IgnoredLintsMap map[string]bool + IssuerURL []string + LintErrLevel lints.LintStatus + NameWhitelist *regexp.Regexp + NameWhitelistString string + NotAfter time.Time + NotBefore time.Time + OCSP string + OCSPNoCheck bool + Policies []CertificatePolicy + PrevAuthKeyName string + PrevProvider auth.Provider + Provider auth.Provider + RemoteCAs *x509.CertPool + RemoteName string + RemoteProvider auth.Provider + RemoteServer string + Usage []string + func DefaultConfig() *SigningProfile + func (p *SigningProfile) Usages() (ku x509.KeyUsage, eku []x509.ExtKeyUsage, unk []string)