Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 61 for rootcert1 (0.14 sec)

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

    	}
    
    	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,
    			ServerAddress: c.opts.CAEndpoint,
    			SAN:           c.opts.CAEndpointSAN,
    		}
    	}
    	return nil
    }
    
    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/test/csrctrl/signer/signer.go

    	if err != nil {
    		return nil, fmt.Errorf("failed to append intermediate certificates (%v)", err)
    	}
    	if appendRootCert {
    		rootCerts, err := util.AppendRootCerts(intermediateCerts, s.caProvider.caLoader.CertFile)
    		if err != nil {
    			return nil, fmt.Errorf("failed to append root certificates (%v)", err)
    		}
    		return rootCerts, nil
    	}
    	return intermediateCerts, nil
    }
    
    func (s *Signer) GetRootCerts() string {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 03 18:57:19 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  3. tests/integration/security/ca_custom_root/secure_naming_test.go

    			exampleCertChainLength, len(certs))
    		return
    	}
    	var rootCert []byte
    	var err error
    	if rootCert, err = cert.ReadSampleCertFromFile("root-cert.pem"); err != nil {
    		t.Errorf("error when reading expected CA cert: %v", err)
    		return
    	}
    	// Verify that the CA certificate is as expected
    	if strings.TrimSpace(string(rootCert)) != strings.TrimSpace(certs[2]) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. pkg/test/echo/client.go

    		var certPool *x509.CertPool
    		certPool, err = x509.SystemCertPool()
    		if err != nil {
    			return nil, fmt.Errorf("failed to fetch Cert from SystemCertPool: %v", err)
    		}
    
    		if tlsSettings.RootCert != "" && !certPool.AppendCertsFromPEM([]byte(tlsSettings.RootCert)) {
    			return nil, fmt.Errorf("failed to create cert pool")
    		}
    		cfg := credentials.NewTLS(&tls.Config{Certificates: []tls.Certificate{cert}, RootCAs: certPool, MinVersion: tls.VersionTLS12})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 14 20:23:34 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  5. security/pkg/pki/util/verify_cert.go

    	if err != nil {
    		return nil, fmt.Errorf("error parsing root certificate: %s", err.Error())
    	}
    	rootCert := certChain[len(certChain)-1]
    
    	if !rootCert.IsCA {
    		return nil, fmt.Errorf("found root cert is not a ca type cert: %v", rootCert)
    	}
    
    	return cert, nil
    }
    
    // IsCertExpired returns  whether a cert expires
    func IsCertExpired(filepath string) (bool, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Sep 05 10:37:29 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  6. security/pkg/nodeagent/caclient/providers/mock/mockcaclient.go

    func (c *CAClient) CSRSign(csrPEM []byte, certValidTTLInSec int64) ([]string, error) {
    	atomic.AddUint64(&c.SignInvokeCount, 1)
    	signingCert, signingKey, certChain, rootCert := c.bundle.GetAll()
    	csr, err := util.ParsePemEncodedCSR(csrPEM)
    	if err != nil {
    		return nil, fmt.Errorf("csr sign error: %v", err)
    	}
    	subjectIDs := []string{"test"}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. pkg/test/cert/ca/intermediate.go

    		return nil, err
    	}
    	caKey, err := file.AsString(ca.KeyFile)
    	if err != nil {
    		return nil, err
    	}
    	rootCert, err := file.AsString(ca.Root.CertFile)
    	if err != nil {
    		return nil, err
    	}
    
    	// Create the cert chain by concatenating the intermediate and root certs.
    	certChain := caCert + rootCert
    
    	return &corev1.Secret{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: "cacerts",
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 03 08:41:32 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  8. pkg/test/echo/common/model.go

    package common
    
    import "istio.io/istio/pkg/config/protocol"
    
    // TLSSettings defines TLS configuration for Echo server
    type TLSSettings struct {
    	// If not empty, RootCert supplies the extra root cert that will be appended to the system cert pool.
    	RootCert   string
    	ClientCert string
    	Key        string
    	// If provided, override the host name used for the connection
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 05 00:22:45 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  9. security/pkg/nodeagent/sds/sdsservice_test.go

    	s.t.Helper()
    	s.store.Set(name, secret)
    	s.server.OnSecretUpdate(name)
    }
    
    type Expectation struct {
    	ResourceName string
    	CertChain    []byte
    	Key          []byte
    	RootCert     []byte
    }
    
    func (s *TestServer) extractPrivateKeyProvider(provider *tlsv3.PrivateKeyProvider) []byte {
    	var cmb cryptomb.CryptoMbPrivateKeyMethodConfig
    	provider.GetTypedConfig().UnmarshalTo(&cmb)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 17 20:12:58 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. pilot/pkg/keycertbundle/watcher.go

    func (w *Watcher) SetFromFilesAndNotify(keyFile, certFile, rootCert string) error {
    	cert, err := os.ReadFile(certFile)
    	if err != nil {
    		return err
    	}
    	key, err := os.ReadFile(keyFile)
    	if err != nil {
    		return err
    	}
    	caBundle, err := os.ReadFile(rootCert)
    	if err != nil {
    		return err
    	}
    	w.SetAndNotify(key, cert, caBundle)
    	return nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 05 14:00:18 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top