func setUp(t *testing.T) server.Config { … }
type TestCertSpec …
type NamedTestCertSpec …
func TestServerRunWithSNI(t *testing.T) { … }
func parseIPList(ips []string) []net.IP { … }
func getOrCreateTestCertFiles(certFileName, keyFileName string, spec TestCertSpec) (err error) { … }
func caCertFromBundle(bundlePath string) (*x509.Certificate, error) { … }
func x509CertSignature(cert *x509.Certificate) string { … }
func certFileSignature(certFile, keyFile string) (string, error) { … }
func certSignature(cert tls.Certificate) (string, error) { … }
func fakeVersion() version.Info { … }
func generateSelfSignedCertKey(host string, alternateIPs []net.IP, alternateDNS []string) ([]byte, []byte, error) { … }