MCPcopy
hub / github.com/fabiolb/fabio / tlsServerConfig

Function tlsServerConfig

proxy/http_integration_test.go:771–777  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

769}
770
771func tlsServerConfig() *tls.Config {
772 cert, err := tls.X509KeyPair(internal.LocalhostCert, internal.LocalhostKey)
773 if err != nil {
774 panic("failed to set cert")
775 }
776 return &tls.Config{Certificates: []tls.Certificate{cert}}
777}
778
779func tlsServerConfig2() *tls.Config {
780 cert, err := tls.X509KeyPair(internal.LocalhostCert2, internal.LocalhostKey2)

Callers 4

TestProxyHTTPSUpstreamFunction · 0.85
TestProxyHTTPSTransportFunction · 0.85
TestProxyWSUpstreamFunction · 0.85
TestProxyTCPAndHTTPSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected