Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 48 of 48 for certPem (0.14 sec)

  1. src/crypto/x509/parser.go

    		}
    		for !revokedSeq.Empty() {
    			rce := RevocationListEntry{}
    
    			var certSeq cryptobyte.String
    			if !revokedSeq.ReadASN1Element(&certSeq, cryptobyte_asn1.SEQUENCE) {
    				return nil, errors.New("x509: malformed crl")
    			}
    			rce.Raw = certSeq
    			if !certSeq.ReadASN1(&certSeq, cryptobyte_asn1.SEQUENCE) {
    				return nil, errors.New("x509: malformed crl")
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  2. src/crypto/tls/handshake_client.go

    func certificateRequestInfoFromMsg(ctx context.Context, vers uint16, certReq *certificateRequestMsg) *CertificateRequestInfo {
    	cri := &CertificateRequestInfo{
    		AcceptableCAs: certReq.certificateAuthorities,
    		Version:       vers,
    		ctx:           ctx,
    	}
    
    	var rsaAvail, ecAvail bool
    	for _, certType := range certReq.certificateTypes {
    		switch certType {
    		case certTypeRSASign:
    			rsaAvail = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 38.6K bytes
    - Viewed (0)
  3. pkg/controller/certificates/authority/authority_test.go

    			if err != nil {
    				t.Fatal(err)
    			}
    
    			certDER, err := ca.Sign(csr, test.policy)
    			if len(test.wantErr) > 0 {
    				if errStr := errString(err); test.wantErr != errStr {
    					t.Fatalf("expected error %s but got %s", test.wantErr, errStr)
    				}
    				return
    			}
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			cert, err := x509.ParseCertificate(certDER)
    			if err != nil {
    				t.Fatal(err)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 23 19:36:11 UTC 2021
    - 7.3K bytes
    - Viewed (0)
  4. pkg/controlplane/apiserver/options/options.go

    		if len(completed.Authentication.ServiceAccounts.KeyFiles) == 0 && completed.SecureServing.ServerCert.CertKey.KeyFile != "" {
    			if kubeauthenticator.IsValidServiceAccountKeyFile(completed.SecureServing.ServerCert.CertKey.KeyFile) {
    				completed.Authentication.ServiceAccounts.KeyFiles = []string{completed.SecureServing.ServerCert.CertKey.KeyFile}
    			} else {
    				klog.Warning("No TLS key provided, service account token authentication disabled")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 12:19:56 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  5. src/crypto/tls/handshake_messages.go

    		if len(d) < 4 {
    			return false
    		}
    		certLen := uint32(d[0])<<16 | uint32(d[1])<<8 | uint32(d[2])
    		if uint32(len(d)) < 3+certLen {
    			return false
    		}
    		d = d[3+certLen:]
    		certsLen -= 3 + certLen
    		numCerts++
    	}
    
    	m.certificates = make([][]byte, numCerts)
    	d = data[7:]
    	for i := 0; i < numCerts; i++ {
    		certLen := uint32(d[0])<<16 | uint32(d[1])<<8 | uint32(d[2])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  6. security/pkg/pki/ca/selfsignedcarootcertrotator_test.go

    func updateRootCertWithCustomCertOptions(t *testing.T,
    	rotator *SelfSignedCARootCertRotator, options util.CertOptions,
    ) {
    	certItem := loadCert(rotator)
    
    	pemCert, pemKey, err := util.GenCertKeyFromOptions(options)
    	if err != nil {
    		t.Fatalf("failed to rotate secret: %v", err)
    	}
    	newSecret := certItem.caSecret
    	newSecret.Data[CACertFile] = pemCert
    	newSecret.Data[CAPrivateKeyFile] = pemKey
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 11 23:33:41 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  7. security/pkg/nodeagent/cache/secretcache.go

    }
    
    // concatCerts concatenates PEM certificates, making sure each one starts on a new line
    func concatCerts(certsPEM []string) []byte {
    	if len(certsPEM) == 0 {
    		return []byte{}
    	}
    	var certChain bytes.Buffer
    	for i, c := range certsPEM {
    		certChain.WriteString(c)
    		if i < len(certsPEM)-1 && !strings.HasSuffix(c, "\n") {
    			certChain.WriteString("\n")
    		}
    	}
    	return certChain.Bytes()
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 04 08:29:46 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  8. src/crypto/tls/handshake_client_test.go

    		NotBefore:    testConfig.Time().Add(-time.Hour),
    		NotAfter:     testConfig.Time().Add(time.Hour),
    	}
    	certDER, err := x509.CreateCertificate(rand.Reader, tmpl, tmpl, k.Public(), k)
    	if err != nil {
    		t.Fatal(err)
    	}
    	cert, err := x509.ParseCertificate(certDER)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	clientConfig, serverConfig := testConfig.Clone(), testConfig.Clone()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
Back to top