- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for generateTLSCertKey (0.11 sec)
-
cmd/test-utils_test.go
muxRouter.Use(globalMiddlewares...) return muxRouter } // generateTLSCertKey creates valid key/cert with registered DNS or IP address // depending on the passed parameter. That way, we can use tls config without // passing InsecureSkipVerify flag. This code is a simplified version of // https://golang.org/src/crypto/tls/generate_cert.go func generateTLSCertKey(host string) ([]byte, []byte, error) { validFor := 365 * 24 * time.Hour
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 01 22:13:18 UTC 2024 - 77K bytes - Viewed (0) -
cmd/server_test.go
}) } } // Setting up the test suite. // Starting the Test server with temporary backend. func (s *TestSuiteCommon) SetUpSuite(c *check) { if s.secure { cert, key, err := generateTLSCertKey("127.0.0.1") c.Assert(err, nil) s.testServer = StartTestTLSServer(c, s.serverType, cert, key) } else { s.testServer = StartTestServer(c, s.serverType) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 15 16:28:02 UTC 2024 - 116.3K bytes - Viewed (0)