Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache interface { Set(host string, c *tls.Certificate) Get(host string) *tls.Certificate }
Cache store the certificates we signed for hosts
type Certificate ¶
type Certificate struct {
// contains filtered or unexported fields
}
Certificate .
func (*Certificate) GeneratePem ¶
func (c *Certificate) GeneratePem(host string) (cert []byte, key []byte, err error)
GeneratePem .
func (*Certificate) GenerateTLSConfig ¶
func (c *Certificate) GenerateTLSConfig(host string) (*tls.Config, error)
GenerateTLSConfig .