Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewCAServerWithKeyCert (1.3 sec)

  1. security/pkg/nodeagent/test/mock/caserver.go

    	certPem       []byte
    	keyPem        []byte
    	KeyCertBundle *util.KeyCertBundle
    	certLifetime  time.Duration
    
    	rejectCSR       bool
    	emptyCert       bool
    	faultInjectLock *sync.Mutex
    }
    
    func NewCAServerWithKeyCert(port int, key, cert []byte, opts ...grpc.ServerOption) (*CAServer, error) {
    	keyCertBundle, err := util.NewVerifiedKeyCertBundleFromPem(cert, key, nil, cert)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. pkg/istio-agent/agent_test.go

    	meta.ProxyConfig = pc
    	return meta
    }
    
    func setupCa(t *testing.T, auth *security.FakeAuthenticator) *mock.CAServer {
    	t.Helper()
    	opt := tlsOptions(t)
    	s, err := mock.NewCAServerWithKeyCert(0,
    		testutil.ReadFile(t, filepath.Join(env.IstioSrc, "./tests/testdata/certs/pilot/ca-key.pem")),
    		testutil.ReadFile(t, filepath.Join(env.IstioSrc, "./tests/testdata/certs/pilot/ca-cert.pem")),
    		opt)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 33.4K bytes
    - Viewed (0)
Back to top