Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getIstiodCertificate (0.15 sec)

  1. pilot/pkg/bootstrap/webhook.go

    		s.httpsMux = s.httpMux
    		istiolog.Infof("HTTPS port is disabled, multiplexing webhooks on the httpAddr %v", args.ServerOptions.HTTPAddr)
    		return
    	}
    
    	tlsConfig := &tls.Config{
    		GetCertificate: s.getIstiodCertificate,
    		MinVersion:     tls.VersionTLS12,
    		CipherSuites:   args.ServerOptions.TLSOptions.CipherSuits,
    	}
    	// Compliance for control plane validation and injection webhook server.
    	sec_model.EnforceGoCompliance(tlsConfig)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 17:37:53 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. pilot/pkg/bootstrap/server_test.go

    			if c.expNewCert {
    				if istiodCert, err := s.getIstiodCertificate(nil); istiodCert == nil || err != nil {
    					t.Errorf("Istiod failed to generate new DNS cert")
    				}
    			} else {
    				if len(c.expCert) != 0 {
    					if !checkCert(t, s, c.expCert, c.expKey) {
    						t.Errorf("Istiod certificate does not match the expectation")
    					}
    				} else {
    					if _, err := s.getIstiodCertificate(nil); err == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. pilot/pkg/bootstrap/server.go

    func hasCustomTLSCertArgs(tlsOptions TLSOptions) bool {
    	return tlsOptions.CaCertFile != "" && tlsOptions.CertFile != "" && tlsOptions.KeyFile != ""
    }
    
    // getIstiodCertificate returns the istiod certificate, used in GetCertificate hook.
    func (s *Server) getIstiodCertificate(*tls.ClientHelloInfo) (*tls.Certificate, error) {
    	s.certMu.RLock()
    	defer s.certMu.RUnlock()
    	if s.istiodCert != nil {
    		return s.istiodCert, nil
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 46.3K bytes
    - Viewed (0)
Back to top