Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NewIstioCA (0.15 sec)

  1. security/pkg/pki/ca/ca_test.go

    		maxCertTTL, org, false, false, caNamespace, client.CoreV1(),
    		rootCertFile, false, rsaKeySize)
    	if err != nil {
    		t.Fatalf("Failed to create a self-signed CA Options: %v", err)
    	}
    
    	ca, err := NewIstioCA(caopts)
    	if err != nil {
    		t.Errorf("Got error while creating self-signed CA: %v", err)
    	}
    	if ca == nil {
    		t.Fatalf("Failed to create a self-signed CA.")
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 08:51:27 UTC 2023
    - 29.1K bytes
    - Viewed (0)
  2. security/pkg/pki/ca/fuzz_test.go

    	f.Fuzz(func(t *testing.T, data, csrPEM []byte) {
    		ff := fuzz.NewConsumer(data)
    		// create ca options
    		opts := &IstioCAOptions{}
    		err := ff.GenerateStruct(opts)
    		if err != nil {
    			return
    		}
    		ca, err := NewIstioCA(opts)
    		if err != nil {
    			return
    		}
    
    		// create cert options
    		certOpts := CertOpts{}
    		err = ff.GenerateStruct(&certOpts)
    		if err != nil {
    			return
    		}
    		TTL, err := time.ParseDuration("800ms")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 12 14:51:41 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  3. security/pkg/pki/ca/ca.go

    	// rootCertRotator periodically rotates self-signed root cert for CA. It is nil
    	// if CA is not self-signed CA.
    	rootCertRotator *SelfSignedCARootCertRotator
    }
    
    // NewIstioCA returns a new IstioCA instance.
    func NewIstioCA(opts *IstioCAOptions) (*IstioCA, error) {
    	ca := &IstioCA{
    		maxCertTTL:    opts.MaxCertTTL,
    		keyCertBundle: opts.KeyCertBundle,
    		caRSAKeySize:  opts.CARSAKeySize,
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 30 19:33:26 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  4. security/pkg/pki/ca/selfsignedcarootcertrotator_test.go

    		caNamespace, client, rootCertFile, false, rsaKeySize)
    	return caopts
    }
    
    func getRootCertRotator(opts *IstioCAOptions) *SelfSignedCARootCertRotator {
    	ca, _ := NewIstioCA(opts)
    	ca.rootCertRotator.config.retryMax = time.Millisecond * 50
    	ca.rootCertRotator.config.retryInterval = time.Millisecond * 5
    	return ca.rootCertRotator
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 11 23:33:41 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  5. pilot/pkg/bootstrap/istio_ca.go

    		if err != nil {
    			return nil, fmt.Errorf("failed to create an istiod CA: %v", err)
    		}
    
    		s.initCACertsWatcher()
    	}
    	istioCA, err := ca.NewIstioCA(caOpts)
    	if err != nil {
    		return nil, fmt.Errorf("failed to create an istiod CA: %v", err)
    	}
    
    	// Start root cert rotator in a separate goroutine.
    	istioCA.Run(s.internalStop)
    	return istioCA, nil
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top