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

Function tlsClientConfig

proxy/http_integration_test.go:760–769  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

758}
759
760func tlsClientConfig() *tls.Config {
761 rootCAs := x509.NewCertPool()
762 if ok := rootCAs.AppendCertsFromPEM(internal.LocalhostCert); !ok {
763 panic("could not parse cert")
764 }
765 if ok := rootCAs.AppendCertsFromPEM(internal.LocalhostCert2); !ok {
766 panic("could not parse cert")
767 }
768 return &tls.Config{RootCAs: rootCAs}
769}
770
771func tlsServerConfig() *tls.Config {
772 cert, err := tls.X509KeyPair(internal.LocalhostCert, internal.LocalhostKey)

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected