Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 53 for dnsNames (0.37 sec)

  1. src/crypto/x509/verify.go

    // VerifyOptions contains parameters for Certificate.Verify.
    type VerifyOptions struct {
    	// DNSName, if set, is checked against the leaf certificate with
    	// Certificate.VerifyHostname or the platform verifier.
    	DNSName string
    
    	// Intermediates is an optional pool of certificates that are not trust
    	// anchors, but can be used to form a chain from the leaf certificate to a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:39 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/phases/certs/renewal/readwriter_test.go

    			Organization: testCertOrganization,
    			Usages:       []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth},
    			AltNames: certutil.AltNames{
    				IPs:      []net.IP{netutils.ParseIPSloppy("10.100.0.1")},
    				DNSNames: []string{"test-domain.space"},
    			},
    			NotBefore: notBefore,
    		},
    		NotAfter: notAfter,
    	}
    	cert, key, err := pkiutil.NewCertAndKey(caCert, caKey, cfg)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 15:17:24 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. src/crypto/tls/boring_test.go

    		ExtKeyUsage:           []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth, x509.ExtKeyUsageClientAuth},
    		BasicConstraintsValid: true,
    	}
    	if mode&^boringCertFIPSOK == boringCertLeaf {
    		tmpl.DNSNames = []string{"example.com"}
    	} else {
    		tmpl.IsCA = true
    		tmpl.KeyUsage |= x509.KeyUsageCertSign
    	}
    
    	var pcert *x509.Certificate
    	var pkey interface{}
    	if parent != nil {
    		pcert = parent.cert
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:45:37 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  4. pilot/pkg/bootstrap/server_test.go

    			Certificate: testcerts.ServerCert,
    		},
    	}
    	s := &Server{
    		server:                  server.New(),
    		istiodCertBundleWatcher: keycertbundle.NewWatcher(),
    		kubeClient:              kube.NewFakeClient(csr),
    		dnsNames:                []string{"abc.xyz"},
    	}
    	s.kubeClient.RunAndWait(test.NewStop(t))
    
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			stop := make(chan struct{})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  5. src/crypto/tls/common.go

    		// valid for the name in the Common Name.
    		if x509Cert.Subject.CommonName != "" && len(x509Cert.DNSNames) == 0 {
    			c.NameToCertificate[x509Cert.Subject.CommonName] = cert
    		}
    		for _, san := range x509Cert.DNSNames {
    			c.NameToCertificate[san] = cert
    		}
    	}
    }
    
    const (
    	keyLogLabelTLS12           = "CLIENT_RANDOM"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 59.1K bytes
    - Viewed (0)
  6. cmd/test-utils_test.go

    	}
    
    	hosts := strings.Split(host, ",")
    	for _, h := range hosts {
    		if ip := net.ParseIP(h); ip != nil {
    			template.IPAddresses = append(template.IPAddresses, ip)
    		} else {
    			template.DNSNames = append(template.DNSNames, h)
    		}
    	}
    
    	template.IsCA = true
    	template.KeyUsage |= x509.KeyUsageCertSign
    
    	derBytes, err := x509.CreateCertificate(crand.Reader, &template, &template, publicKey(priv), priv)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  7. src/crypto/tls/handshake_client_test.go

    	k, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
    	if err != nil {
    		t.Fatal(err)
    	}
    	tmpl := &x509.Certificate{
    		SerialNumber: big.NewInt(1),
    		Subject:      pkix.Name{CommonName: "test"},
    		DNSNames:     []string{"example.golang"},
    		NotBefore:    testConfig.Time().Add(-time.Hour),
    		NotAfter:     testConfig.Time().Add(time.Hour),
    	}
    	certDER, err := x509.CreateCertificate(rand.Reader, tmpl, tmpl, k.Public(), k)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  8. cmd/admin-handlers.go

    	if globalIsTLS {
    		for _, c := range globalPublicCerts {
    			check := xxh3.Hash(c.RawIssuer)
    			check ^= xxh3.Hash(c.RawSubjectPublicKeyInfo)
    			// We XOR, so order doesn't matter.
    			for _, v := range c.DNSNames {
    				check ^= xxh3.HashString(v)
    			}
    			for _, v := range c.EmailAddresses {
    				check ^= xxh3.HashString(v)
    			}
    			for _, v := range c.IPAddresses {
    				check ^= xxh3.HashString(v.String())
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
  9. pilot/pkg/xds/lds.go

    		kind.Secret,
    		kind.ProxyConfig,
    		kind.DNSName,
    	),
    	model.SidecarProxy: sets.New(
    		kind.Gateway,
    		kind.WorkloadGroup,
    		kind.WorkloadEntry,
    		kind.Secret,
    		kind.ProxyConfig,
    		kind.DNSName,
    
    		kind.KubernetesGateway,
    	),
    	model.Waypoint: sets.New(
    		kind.Gateway,
    		kind.WorkloadGroup,
    		kind.WorkloadEntry,
    		kind.Secret,
    		kind.ProxyConfig,
    		kind.DNSName,
    
    		kind.KubernetesGateway,
    	),
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 15:58:06 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. security/pkg/k8s/chiron/utils.go

    // 1. Generate a CSR
    // 2. Call SignCSRK8s to finish rest of the flow
    func GenKeyCertK8sCA(client clientset.Interface, dnsName,
    	caFilePath string, signerName string, approveCsr bool, requestedLifetime time.Duration,
    ) ([]byte, []byte, []byte, error) {
    	// 1. Generate a CSR
    	options := util.CertOptions{
    		Host:       dnsName,
    		RSAKeySize: keySize,
    		IsDualUse:  false,
    		PKCS8Key:   false,
    	}
    	csrPEM, keyPEM, err := util.GenCSR(options)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 18:11:22 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top