Documentation ¶
Index ¶
Constants ¶
View Source
const ( CurveTypeP224 CurveType = "P224" CurveTypeP256 CurveType = "P256" CurveTypeP384 CurveType = "P384" CurveTypeP521 CurveType = "P521" CurveTypeED25519 CurveType = "ED25519" TLSVersionTLS10 TLSVersion = "TLS10" TLSVersionTLS11 TLSVersion = "TLS11" TLSVersionTLS12 TLSVersion = "TLS12" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Put(cert *tls.Certificate) error Get(cn string) (*tls.Certificate, bool) }
func NewFileSystemCache ¶
func NewFileSystemCache(certCachePath string, source TimeSource) Cache
type GenerationOptions ¶
type Generator ¶
type Generator interface { CACert(options GenerationOptions) (*tls.Certificate, error) ServerCert(options GenerationOptions, ca *tls.Certificate) (*tls.Certificate, error) }
func NewDefaultGenerator ¶
func NewGenerator ¶
func NewGenerator(options Options, source TimeSource, provider KeyProvider) Generator
type KeyProvider ¶
type KeyProvider func() (key interface{}, err error)
type Options ¶ added in v0.2.0
type Options struct { RootCACert File CertCachePath string Curve CurveType Validity ValidityByPurpose IncludeInsecureCipherSuites bool MinTLSVersion TLSVersion }
type PEMCert ¶ added in v0.7.0
type PEMCert struct {
*tls.Certificate
}
type Store ¶
type Store interface { CACert() *tls.Certificate Certificate(serverName string, ip net.IP) (*tls.Certificate, error) TLSConfig() *tls.Config }
func MustDefaultStore ¶ added in v0.6.0
func NewDefaultStore ¶
type TLSVersion ¶ added in v0.2.0
type TLSVersion string
func (TLSVersion) TLSVersion ¶ added in v0.2.0
func (x TLSVersion) TLSVersion() uint16
func (TLSVersion) Value ¶ added in v0.2.0
func (x TLSVersion) Value() string
type TimeSource ¶
func NewTimeSource ¶
func NewTimeSource() TimeSource
type ValidityByPurpose ¶ added in v0.2.0
type ValidityByPurpose struct { CA ValidityDuration Server ValidityDuration }
Click to show internal directories.
Click to hide internal directories.