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

Function tlsServerConfig2

proxy/http_integration_test.go:779–785  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

777}
778
779func tlsServerConfig2() *tls.Config {
780 cert, err := tls.X509KeyPair(internal.LocalhostCert2, internal.LocalhostKey2)
781 if err != nil {
782 panic("failed to set cert")
783 }
784 return &tls.Config{Certificates: []tls.Certificate{cert}}
785}
786
787func mustParse(rawurl string) *url.URL {
788 u, err := url.Parse(rawurl)

Callers 1

TestProxyTCPAndHTTPSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected