Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TLSScenario ¶
type TLSScenario struct { CAs *x509.CertPool ServerCert *x509.Certificate ServerKey *ecdsa.PrivateKey ClientCert *x509.Certificate ClientKey *ecdsa.PrivateKey }
TLSScenario holds client & server tls credentials.
func Create ¶
Create returns client and server TLS credentials generated during the runtime only for testing.
func (TLSScenario) ClientTLSConfig ¶ added in v1.66.0
func (t TLSScenario) ClientTLSConfig() *tls.Config
ClientTLSConfig returns client TLS config.
func (TLSScenario) ServerTLSConfig ¶ added in v1.66.0
func (t TLSScenario) ServerTLSConfig() *tls.Config
ServerTLSConfig returns server TLS config.
Click to show internal directories.
Click to hide internal directories.