kubernetes/staging/src/k8s.io/apiserver/pkg/server/options/serving_test.go

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 {}

// generateSelfSignedCertKey creates a self-signed certificate and key for the given host.
// Host may be an IP or a DNS name
// You may also specify additional subject alt names (either ip or dns names) for the certificate
func generateSelfSignedCertKey(host string, alternateIPs []net.IP, alternateDNS []string) ([]byte, []byte, error) {}