Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getTLSOptions (0.17 sec)

  1. security/pkg/nodeagent/caclient/providers/citadel/client.go

    	}
    
    	if len(resp.CertChain) <= 1 {
    		return nil, errors.New("invalid empty CertChain")
    	}
    
    	return resp.CertChain, nil
    }
    
    func (c *CitadelClient) getTLSOptions() *istiogrpc.TLSOptions {
    	if c.tlsOpts != nil {
    		return &istiogrpc.TLSOptions{
    			RootCert:      c.tlsOpts.RootCert,
    			Key:           c.tlsOpts.Key,
    			Cert:          c.tlsOpts.Cert,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. pkg/istio-agent/xds_proxy.go

    	}
    
    	p.optsMutex.Lock()
    	p.dialOptions = opts
    	p.optsMutex.Unlock()
    	return nil
    }
    
    func (p *XdsProxy) buildUpstreamClientDialOpts(sa *Agent) ([]grpc.DialOption, error) {
    	tlsOpts, err := p.getTLSOptions(sa)
    	if err != nil {
    		return nil, fmt.Errorf("failed to get TLS options to talk to upstream: %v", err)
    	}
    	options, err := istiogrpc.ClientOptions(nil, tlsOpts)
    	if err != nil {
    		return nil, err
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 27.9K bytes
    - Viewed (0)
Back to top