MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / makeServerTLSConfig

Function makeServerTLSConfig

pkg/interop/util_test.go:86–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84}
85
86func makeServerTLSConfig() *tls.Config {
87 return &tls.Config{
88 MinVersion: tls.VersionTLS12,
89 Certificates: makeServerCertificates(),
90 ClientAuth: tls.VerifyClientCertIfGiven,
91 ClientCAs: makeCertPool(),
92 }
93}
94
95func newTLSServer(port int, hdl http.Handler) *httptest.Server {
96 lis, err := net.Listen("tcp", fmt.Sprintf("127.0.0.1:%d", port))

Callers 1

newTLSServerFunction · 0.85

Calls 2

makeServerCertificatesFunction · 0.85
makeCertPoolFunction · 0.85

Tested by

no test coverage detected