Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GenKeyCert (0.16 sec)

  1. pilot/pkg/bootstrap/certcontroller.go

    func (s *Server) initDNSCertsIstiod() error {
    	var certChain, keyPEM, caBundle []byte
    	var err error
    	// Generate certificates for Istiod DNS names, signed by Istiod CA
    	certChain, keyPEM, err = s.CA.GenKeyCert(s.dnsNames, SelfSignedCACertTTL.Get(), false)
    	if err != nil {
    		return fmt.Errorf("failed generating istiod key cert %v", err)
    	}
    	log.Infof("Generating istiod-signed cert for %v:\n %s", s.dnsNames, certChain)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  2. security/pkg/pki/ca/ca.go

    // GetCAKeyCertBundle returns the KeyCertBundle for the CA.
    func (ca *IstioCA) GetCAKeyCertBundle() *util.KeyCertBundle {
    	return ca.keyCertBundle
    }
    
    // GenKeyCert generates a certificate signed by the CA,
    // returns the certificate chain and the private key.
    func (ca *IstioCA) GenKeyCert(hostnames []string, certTTL time.Duration, checkLifetime bool) ([]byte, []byte, error) {
    	opts := util.CertOptions{
    		RSAKeySize: rsaKeySize,
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 30 19:33:26 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  3. security/pkg/pki/ca/ca_test.go

    		if err != nil {
    			t.Fatalf("%s: got error while creating plugged-cert CA: %v", id, err)
    		}
    		if ca == nil {
    			t.Fatalf("failed to create a plugged-cert CA.")
    		}
    
    		certPEM, privPEM, err := ca.GenKeyCert([]string{"host1", "host2"}, tc.certLifetime, tc.checkCertLifetime)
    		if err != nil {
    			if tc.expectedError == "" {
    				t.Fatalf("[%s] Unexpected error: %v", id, err)
    			}
    			if err.Error() != tc.expectedError {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 08:51:27 UTC 2023
    - 29.1K bytes
    - Viewed (0)
Back to top