Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for keyUsages (0.22 sec)

  1. src/crypto/x509/verify.go

    	// the order of the bit flags in the keyUsage due to confusion over
    	// encoding endianness, essentially setting a random keyUsage in
    	// certificates that it issued. Another CA created a self-invalidating
    	// certificate by adding a certificate policy statement stipulating
    	// that the certificate had to be used strictly as specified in the
    	// keyUsage, and a keyUsage containing a flag indicating that the RSA
    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. staging/src/k8s.io/api/certificates/v1beta1/types.go

    	UsageKeyAgreement      KeyUsage = "key agreement"
    	UsageDataEncipherment  KeyUsage = "data encipherment"
    	UsageCertSign          KeyUsage = "cert sign"
    	UsageCRLSign           KeyUsage = "crl sign"
    	UsageEncipherOnly      KeyUsage = "encipher only"
    	UsageDecipherOnly      KeyUsage = "decipher only"
    	UsageAny               KeyUsage = "any"
    	UsageServerAuth        KeyUsage = "server auth"
    	UsageClientAuth        KeyUsage = "client auth"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  3. pkg/apis/certificates/types.go

    	UsageKeyAgreement      KeyUsage = "key agreement"
    	UsageDataEncipherment  KeyUsage = "data encipherment"
    	UsageCertSign          KeyUsage = "cert sign"
    	UsageCRLSign           KeyUsage = "crl sign"
    	UsageEncipherOnly      KeyUsage = "encipher only"
    	UsageDecipherOnly      KeyUsage = "decipher only"
    	UsageAny               KeyUsage = "any"
    	UsageServerAuth        KeyUsage = "server auth"
    	UsageClientAuth        KeyUsage = "client auth"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:49 UTC 2023
    - 11K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509.go

    // and requires certificates to be valid for client auth (x509.ExtKeyUsageClientAuth)
    func DefaultVerifyOptions() x509.VerifyOptions {
    	return x509.VerifyOptions{
    		KeyUsages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth},
    	}
    }
    
    // CommonNameUserConversion builds user info from a certificate chain using the subject's CommonName
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 18 01:31:22 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/pkiutil/pki_helpers.go

    		return nil, err
    	}
    	serial = new(big.Int).Add(serial, big.NewInt(1))
    	if len(cfg.CommonName) == 0 {
    		return nil, errors.New("must specify a CommonName")
    	}
    
    	keyUsage := x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature
    	if isCA {
    		keyUsage |= x509.KeyUsageCertSign
    	}
    
    	RemoveDuplicateAltNames(&cfg.AltNames)
    
    	notBefore := caCert.NotBefore
    	if !cfg.NotBefore.IsZero() {
    		notBefore = cfg.NotBefore
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  6. src/crypto/tls/handshake_server.go

    	if c.config.ClientAuth >= VerifyClientCertIfGiven && len(certs) > 0 {
    		opts := x509.VerifyOptions{
    			Roots:         c.config.ClientCAs,
    			CurrentTime:   c.config.time(),
    			Intermediates: x509.NewCertPool(),
    			KeyUsages:     []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth},
    		}
    
    		for _, cert := range certs[1:] {
    			opts.Intermediates.AddCert(cert)
    		}
    
    		chains, err := certs[0].Verify(opts)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  7. src/crypto/x509/name_constraints_test.go

    							return
    						}
    					}
    				}
    			}
    
    			verifyOpts := VerifyOptions{
    				Roots:         rootPool,
    				Intermediates: intermediatePool,
    				CurrentTime:   time.Unix(1500, 0),
    				KeyUsages:     test.requestedEKUs,
    			}
    			_, err = leafCert.Verify(verifyOpts)
    
    			logInfo := true
    			if len(test.expectedError) == 0 {
    				if err != nil {
    					t.Errorf("unexpected failure: %s", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 22:40:21 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  8. cmd/sts-handlers.go

    	certificate := r.TLS.PeerCertificates[0]
    	if !globalIAMSys.STSTLSConfig.InsecureSkipVerify { // Verify whether the client certificate has been issued by a trusted CA.
    		_, err := certificate.Verify(x509.VerifyOptions{
    			KeyUsages: []x509.ExtKeyUsage{
    				x509.ExtKeyUsageClientAuth,
    			},
    			Roots: globalRootCAs,
    		})
    		if err != nil {
    			writeSTSErrorResponse(ctx, w, ErrSTSInvalidClientCertificate, err)
    			return
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/certificates/v1/types.go

    	UsageKeyEncipherment   KeyUsage = "key encipherment"
    	UsageKeyAgreement      KeyUsage = "key agreement"
    	UsageDataEncipherment  KeyUsage = "data encipherment"
    	UsageCertSign          KeyUsage = "cert sign"
    	UsageCRLSign           KeyUsage = "crl sign"
    	UsageEncipherOnly      KeyUsage = "encipher only"
    	UsageDecipherOnly      KeyUsage = "decipher only"
    	UsageAny               KeyUsage = "any"
    	UsageServerAuth        KeyUsage = "server auth"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  10. security/pkg/pki/util/generate_cert_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	fields := &VerifyFields{
    		NotBefore:   caCertNotBefore,
    		TTL:         caCertTTL,
    		ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth},
    		KeyUsage:    x509.KeyUsageCertSign,
    		IsCA:        true,
    		Org:         "MyOrg",
    		Host:        host,
    	}
    	if VerifyCertificate(rsaCaPrivPem, rsaCaCertPem, rsaCaCertPem, fields) != nil {
    		t.Fatal(err)
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 06 12:48:53 UTC 2023
    - 29.4K bytes
    - Viewed (0)
Back to top