Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for SubjectKeyId (0.78 sec)

  1. src/crypto/x509/x509.go

    		return nil, err
    	}
    
    	authorityKeyId := template.AuthorityKeyId
    	if !bytes.Equal(asn1Issuer, asn1Subject) && len(parent.SubjectKeyId) > 0 {
    		authorityKeyId = parent.SubjectKeyId
    	}
    
    	subjectKeyId := template.SubjectKeyId
    	if len(subjectKeyId) == 0 && template.IsCA {
    		// SubjectKeyId generated using method 1 in RFC 5280, Section 4.2.1.2:
    		//   (1) The keyIdentifier is composed of the 160-bit SHA-1 hash of the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  2. tests/integration/ambient/cacert_rotation_test.go

    	// verify workload cert contains the correct intermediate cert
    	if !bytes.Equal(workloadX509.AuthorityKeyId, caX590.SubjectKeyId) {
    		return fmt.Errorf("workload certificate did not have expected authority key id: got %v wanted %v",
    			string(workloadX509.AuthorityKeyId), string(caX590.SubjectKeyId))
    	}
    
    	return nil
    }
    
    func getX509FromFile(t framework.TestContext, caCertFile string) *x509.Certificate {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 03:28:36 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. src/crypto/x509/cert_pool.go

    		if err != nil {
    			continue
    		}
    		kidMatch := bytes.Equal(candidate.SubjectKeyId, cert.AuthorityKeyId)
    		switch {
    		case kidMatch:
    			matchingKeyID = append(matchingKeyID, potentialParent{candidate, constraint})
    		case (len(candidate.SubjectKeyId) == 0 && len(cert.AuthorityKeyId) > 0) ||
    			(len(candidate.SubjectKeyId) > 0 && len(cert.AuthorityKeyId) == 0):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:41:40 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  4. src/crypto/x509/x509_test.go

    	}
    	if cert := serialiseAndParse(t, template); len(cert.SubjectKeyId) == 0 {
    		t.Fatalf("self-signed certificate did not generate subject key id using the public key")
    	}
    
    	template.IsCA = false
    	if cert := serialiseAndParse(t, template); len(cert.SubjectKeyId) != 0 {
    		t.Fatalf("self-signed certificate generated subject key id when it isn't a CA")
    	}
    
    	template.SubjectKeyId = []byte{1, 2, 3, 4}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
  5. pkg/controller/certificates/authority/authority_test.go

    	}{
    		{
    			name:   "ca info",
    			policy: PermissiveSigningPolicy{TTL: time.Hour, Now: nowFunc},
    			want: x509.Certificate{
    				Issuer:                caCert.Subject,
    				AuthorityKeyId:        caCert.SubjectKeyId,
    				NotBefore:             now,
    				NotAfter:              now.Add(1 * time.Hour),
    				BasicConstraintsValid: true,
    			},
    		},
    		{
    			name:   "key usage",
    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. staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509.go

    			sb.WriteRune(':')
    		}
    	}
    	return sb.String()
    }
    
    func certificateIdentifier(c *x509.Certificate) string {
    	return fmt.Sprintf(
    		"SN=%d, SKID=%s, AKID=%s",
    		c.SerialNumber,
    		columnSeparatedHex(c.SubjectKeyId),
    		columnSeparatedHex(c.AuthorityKeyId),
    	)
    }
    
    // VerifyOptionFunc is function which provides a shallow copy of the VerifyOptions to the authenticator.  This allows
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 18 01:31:22 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509_test.go

    		},
    		{
    			name: "empty SKID",
    			cert: func() *x509.Certificate {
    				c := getCert(t, clientCNCert)
    				c.SubjectKeyId = nil
    				return c
    			}(),
    			expectedIdentifier: "SN=1, SKID=, AKID=D3:07:CD:72:E6:BE:0A:5A:D8:E9:60:20:AF:C2:F2:36:7E:33:62:0B",
    		},
    		{
    			name: "empty AKID",
    			cert: func() *x509.Certificate {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 23:23:03 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  8. src/crypto/x509/parser.go

    				}
    				val := cryptobyte.String(e.Value)
    				var skid cryptobyte.String
    				if !val.ReadASN1(&skid, cryptobyte_asn1.OCTET_STRING) {
    					return errors.New("x509: invalid subject key identifier")
    				}
    				out.SubjectKeyId = skid
    			case 32:
    				out.Policies, err = parseCertificatePoliciesExtension(e.Value)
    				if err != nil {
    					return err
    				}
    				out.PolicyIdentifiers = make([]asn1.ObjectIdentifier, 0, len(out.Policies))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  9. src/crypto/x509/verify_test.go

    		RawIssuer:      []byte{1, 2, 3},
    		AuthorityKeyId: []byte{1, 2, 3},
    	}
    	opts := &VerifyOptions{}
    	opts.Roots = NewCertPool()
    	r := &Certificate{
    		RawSubject:   []byte{1, 2, 3},
    		SubjectKeyId: []byte{1, 2, 3},
    	}
    	opts.Roots.AddCert(r)
    
    	_, err := c.buildChains([]*Certificate{r}, nil, opts)
    	if _, ok := err.(UnknownAuthorityError); !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 110.2K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Certificate.SerialNumber", Field, 0},
    		{"Certificate.Signature", Field, 0},
    		{"Certificate.SignatureAlgorithm", Field, 0},
    		{"Certificate.Subject", Field, 0},
    		{"Certificate.SubjectKeyId", Field, 0},
    		{"Certificate.URIs", Field, 10},
    		{"Certificate.UnhandledCriticalExtensions", Field, 5},
    		{"Certificate.UnknownExtKeyUsage", Field, 0},
    		{"Certificate.Version", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top