Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for localhostCertPool (0.28 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper_test.go

    		}
    		ts := httptest.NewUnstartedServer(h)
    		ts.TLS = &tls.Config{
    			Certificates: []tls.Certificate{cert},
    		}
    		ts.StartTLS()
    		return ts
    	}
    }
    
    func localhostCertPool(t *testing.T) *x509.CertPool {
    	localhostPool := x509.NewCertPool()
    
    	if !localhostPool.AppendCertsFromPEM(localhostCert) {
    		t.Errorf("error setting up localhostCert pool")
    	}
    	return localhostPool
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 32.7K bytes
    - Viewed (0)
Back to top