- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for SubjectKeyId (0.24 sec)
-
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) -
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) -
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) -
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) -
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) -
staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 02 23:23:03 UTC 2024 - 36.9K bytes - Viewed (0) -
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) -
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) -
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)