Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TLSConfig ¶
func NewTLSConfig ¶
func SelfSignedTLSConfig ¶
func SelfSignedTLSConfig() *TLSConfig
SelfSignedTLSConfig generates a self-signed CA, certificate and key. Very useful for unit testing.
func (*TLSConfig) CACertificate ¶
func (this *TLSConfig) CACertificate() (*x509.Certificate, error)
CACertificate decodes the PEM block in the CA bytes and parses a X.509 certificate from the result.
func (*TLSConfig) Certificate ¶
func (this *TLSConfig) Certificate() (tlsCert tls.Certificate, err error)
Certificate creates a X.509 Key Pair from Cert and Key bytes and prepares the Certificate.
Click to show internal directories.
Click to hide internal directories.