Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 60 for rootcert2 (0.25 sec)

  1. security/pkg/pki/util/keycertbundle_test.go

    		IsCA:         true,
    		IsSelfSigned: true,
    		TTL:          time.Hour,
    		RSAKeySize:   2048,
    	})
    	if err != nil {
    		t.Errorf("failed to gen root cert for Citadel self signed cert %v", err)
    	}
    
    	rootCert, err := ParsePemEncodedCertificate(rootCertBytes)
    	if err != nil {
    		t.Errorf("failed to parsing pem for root cert %v", err)
    	}
    
    	rootKey, err := ParsePemEncodedKey(rootKeyBytes)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jan 21 06:07:50 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  2. tests/integration/security/util/framework.go

    			},
    		},
    		// Set up TLS certs on the server. This will make the server listen with these credentials.
    		TLSSettings: &common.TLSSettings{
    			// Echo has these test certs baked into the docker image
    			RootCert:   mustReadCert("root-cert.pem"),
    			ClientCert: mustReadCert("cert-chain.pem"),
    			Key:        mustReadCert("key.pem"),
    			// Override hostname to match the SAN in the cert we are using
    			Hostname: "server.default.svc",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. security/pkg/pki/util/keycertbundle.go

    	"time"
    )
    
    // KeyCertBundle stores the cert, private key, cert chain and root cert for an entity. It is thread safe.
    // The cert and privKey should be a public/private key pair.
    // The cert should be verifiable from the rootCert through the certChain.
    // cert and priveKey are pointers to the cert/key parsed from certBytes/privKeyBytes.
    type KeyCertBundle struct {
    	certBytes      []byte
    	cert           *x509.Certificate
    	privKeyBytes   []byte
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jan 21 06:07:50 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  4. pilot/pkg/bootstrap/server.go

    	var err error
    	if s.CA != nil {
    		// If IstioCA is setup, derive trustAnchor directly from CA
    		rootCerts := []string{string(s.CA.GetCAKeyCertBundle().GetRootCertPem())}
    		err = s.workloadTrustBundle.UpdateTrustAnchor(&tb.TrustAnchorUpdate{
    			TrustAnchorConfig: tb.TrustAnchorConfig{Certs: rootCerts},
    			Source:            tb.SourceIstioCA,
    		})
    		if err != 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)
  5. security/pkg/k8s/chiron/utils_test.go

    func TestGenKeyCertK8sCA(t *testing.T) {
    	log.FindScope("default").SetOutputLevel(log.DebugLevel)
    	signers, client := runTestSigner(t)
    	ca := filepath.Join(t.TempDir(), "root-cert.pem")
    	os.WriteFile(ca, []byte(signers[0].Rootcert), 0o666)
    
    	_, _, _, err := GenKeyCertK8sCA(client.Kube(), "foo", ca, testSigner, true, DefaulCertTTL)
    	assert.NoError(t, err)
    }
    
    func TestReadCACert(t *testing.T) {
    	testCases := map[string]struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 03:58:11 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. pkg/apis/certificates/validation/validation_test.go

    		SerialNumber: big.NewInt(0),
    		Subject: pkix.Name{
    			CommonName: "root1",
    		},
    		IsCA:                  true,
    		BasicConstraintsValid: true,
    	})
    
    	goodCert2 := mustMakeCertificate(t, &x509.Certificate{
    		SerialNumber: big.NewInt(0),
    		Subject: pkix.Name{
    			CommonName: "root2",
    		},
    		IsCA:                  true,
    		BasicConstraintsValid: true,
    	})
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:49 UTC 2023
    - 61K bytes
    - Viewed (0)
  7. hack/unwanted-dependencies.json

          "github.com/hashicorp/go-multierror": "MPL license not in CNCF allowlist",
          "github.com/hashicorp/go-retryablehttp": "MPL license not in CNCF allowlist",
          "github.com/hashicorp/go-rootcerts": "MPL license not in CNCF allowlist",
          "github.com/hashicorp/go-sockaddr": "MPL license not in CNCF allowlist",
          "github.com/hashicorp/go-uuid": "MPL license not in CNCF allowlist",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 13 12:31:38 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  8. src/crypto/x509/name_constraints_test.go

    			var parent *Certificate
    			parentKey := rootKey
    
    			for _, root := range test.roots {
    				rootCert, err := makeConstraintsCACert(root, rootName, rootKey, nil, rootKey)
    				if err != nil {
    					t.Fatalf("failed to create root: %s", err)
    				}
    
    				parent = rootCert
    				rootPool.AddCert(rootCert)
    			}
    
    			intermediatePool := NewCertPool()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 22:40:21 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  9. istioctl/pkg/workload/workload.go

    // TODO: Make the following accurate when using the Kubernetes certificate signer
    func createCertsTokens(kubeClient kube.CLIClient, wg *clientv1alpha3.WorkloadGroup, dir string, out io.Writer) error {
    	rootCert, err := kubeClient.Kube().CoreV1().ConfigMaps(wg.Namespace).Get(context.Background(), controller.CACertNamespaceConfigMap, metav1.GetOptions{})
    	// errors if the requested configmap does not exist in the given namespace
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  10. security/pkg/nodeagent/sds/sdsservice.go

    		secret.Type = &tls.Secret_ValidationContext{
    			ValidationContext: &tls.CertificateValidationContext{
    				TrustedCa: &core.DataSource{
    					Specifier: &core.DataSource_InlineBytes{
    						InlineBytes: s.RootCert,
    					},
    				},
    			},
    		}
    	} else {
    		switch pkpConf.GetProvider().(type) {
    		case *mesh.PrivateKeyProvider_Cryptomb:
    			crypto := pkpConf.GetCryptomb()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat May 25 00:20:04 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top