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