Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for ExtKeyUsage (0.15 sec)

  1. src/crypto/x509/root_windows.go

    // windowsExtKeyUsageOIDs are the C NUL-terminated string representations of the
    // OIDs for use with the Windows API.
    var windowsExtKeyUsageOIDs = make(map[ExtKeyUsage][]byte, len(extKeyUsageOIDs))
    
    func init() {
    	for _, eku := range extKeyUsageOIDs {
    		windowsExtKeyUsageOIDs[eku.extKeyUsage] = []byte(eku.oid.String() + "\x00")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:41:40 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/util.go

    	signerHumanName := certificate.Issuer.CommonName
    	if certificate.Subject.CommonName == certificate.Issuer.CommonName {
    		signerHumanName = "<self>"
    	}
    
    	usages := []string{}
    	for _, curr := range certificate.ExtKeyUsage {
    		if curr == x509.ExtKeyUsageClientAuth {
    			usages = append(usages, "client")
    			continue
    		}
    		if curr == x509.ExtKeyUsageServerAuth {
    			usages = append(usages, "serving")
    			continue
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 21 07:29:30 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  3. src/crypto/tls/generate_cert.go

    		SerialNumber: serialNumber,
    		Subject: pkix.Name{
    			Organization: []string{"Acme Co"},
    		},
    		NotBefore: notBefore,
    		NotAfter:  notAfter,
    
    		KeyUsage:              keyUsage,
    		ExtKeyUsage:           []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth},
    		BasicConstraintsValid: true,
    	}
    
    	hosts := strings.Split(*host, ",")
    	for _, h := range hosts {
    		if ip := net.ParseIP(h); ip != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 08 15:22:02 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/named_certificates_test.go

    		NotBefore: time.Unix(0, 0),
    		NotAfter:  time.Now().Add(time.Hour * 24 * 365 * 100),
    
    		KeyUsage:              x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign,
    		ExtKeyUsage:           []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth},
    		BasicConstraintsValid: true,
    		IsCA:                  true,
    	}
    
    	if ip := netutils.ParseIPSloppy(host); ip != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 20 08:42:09 UTC 2021
    - 8K bytes
    - Viewed (0)
  5. pkg/controller/certificates/authority/authority_test.go

    			want: x509.Certificate{
    				NotBefore:             now,
    				NotAfter:              now.Add(1 * time.Hour),
    				BasicConstraintsValid: true,
    				ExtKeyUsage:           []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth},
    			},
    		},
    		{
    			name:   "backdate without short",
    			policy: PermissiveSigningPolicy{TTL: time.Hour, Backdate: 5 * time.Minute, Now: nowFunc},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 23 19:36:11 UTC 2021
    - 7.3K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/phases/certs/certlist_test.go

    			BaseName: "test-ca",
    		},
    		{
    			config: pkiutil.CertConfig{
    				Config: certutil.Config{
    					AltNames: certutil.AltNames{
    						DNSNames: []string{"test-domain.space"},
    					},
    					Usages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth},
    				},
    			},
    			configMutators: []configMutatorsFunc{
    				setCommonNameToNodeName(),
    			},
    			CAName:   "test-ca",
    			Name:     "test-daughter",
    			BaseName: "test-daughter",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  7. cmd/kubeadm/test/kubeconfig/util.go

    	// Assert the clientCert has expected NotAfter
    	certstestutil.AssertCertificateHasNotAfter(t, currentClientCert, expectedNotAfter)
    
    	// Asserts the clientCert has ClientAuth ExtKeyUsage
    	certstestutil.AssertCertificateHasClientAuthUsage(t, currentClientCert)
    
    	// Asserts the clientCert has expected expectedUserName as CommonName
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. src/crypto/x509/root_darwin.go

    		if err := chain[0][0].VerifyHostname(opts.DNSName); err != nil {
    			return nil, err
    		}
    	}
    
    	keyUsages := opts.KeyUsages
    	if len(keyUsages) == 0 {
    		keyUsages = []ExtKeyUsage{ExtKeyUsageServerAuth}
    	}
    
    	// If any key usage is acceptable then we're done.
    	for _, usage := range keyUsages {
    		if usage == ExtKeyUsageAny {
    			return chain, nil
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 00:36:38 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  9. src/crypto/tls/example_test.go

    		VerifyConnection: func(cs tls.ConnectionState) error {
    			opts := x509.VerifyOptions{
    				DNSName:       cs.ServerName,
    				Intermediates: x509.NewCertPool(),
    				KeyUsages:     []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth},
    			}
    			for _, cert := range cs.PeerCertificates[1:] {
    				opts.Intermediates.AddCert(cert)
    			}
    			_, err := cs.PeerCertificates[0].Verify(opts)
    			return err
    		},
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/dynamic_cafile_content.go

    // and requires certificates to be valid for client auth (x509.ExtKeyUsageClientAuth)
    func defaultVerifyOptions() x509.VerifyOptions {
    	return x509.VerifyOptions{
    		KeyUsages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top