Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. 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