- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for EKU (0.02 sec)
-
src/crypto/x509/platform_test.go
}, time: now.Add(time.Minute * 30), }, { name: "valid (with eku)", cert: &Certificate{ SerialNumber: big.NewInt(1), DNSNames: []string{"valid.testing.golang.invalid"}, NotBefore: now.Add(-time.Hour), NotAfter: now.Add(time.Hour), ExtKeyUsage: []ExtKeyUsage{ExtKeyUsageServerAuth}, }, eku: []ExtKeyUsage{ExtKeyUsageServerAuth}, }, { name: "wrong name",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 17:18:29 UTC 2024 - 7.2K bytes - Viewed (0) -
pkg/controller/certificates/authority/policies_test.go
t.Run(fmt.Sprint(tc.usages), func(t *testing.T) { ku, eku, err := keyUsagesFromStrings(tc.usages) if tc.expectErr { if err == nil { t.Errorf("did not return an error, but expected one") } return } if err != nil { t.Errorf("unexpected error: %v", err) } if ku != tc.expectedKeyUsage || !reflect.DeepEqual(eku, tc.expectedExtKeyUsage) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 05 22:45:34 UTC 2020 - 2.6K bytes - Viewed (0) -
src/crypto/x509/root_windows.go
// 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") } } func verifyChain(c *Certificate, chainCtx *syscall.CertChainContext, opts *VerifyOptions) (chain []*Certificate, err error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 19:41:40 UTC 2023 - 8.7K bytes - Viewed (0) -
security/pkg/pki/util/verify_cert.go
} if eku := sortExtKeyUsage(expectedFields.ExtKeyUsage); !reflect.DeepEqual(eku, sortExtKeyUsage(cert.ExtKeyUsage)) { return fmt.Errorf("unexpected value for 'ExtKeyUsage' field: want %v but got %v", eku, cert.ExtKeyUsage) } if ku := expectedFields.KeyUsage; ku != cert.KeyUsage {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Sep 05 10:37:29 UTC 2022 - 5.9K bytes - Viewed (0) -
pkg/test/csrctrl/authority/policies.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 03 17:06:22 UTC 2022 - 4.5K bytes - Viewed (0) -
pkg/controller/certificates/authority/policies.go
extKeyUsages[val] = struct{}{} } else { unrecognized = append(unrecognized, usage) } } var sorted sortedExtKeyUsage for eku := range extKeyUsages { sorted = append(sorted, eku) } sort.Sort(sorted) if len(unrecognized) > 0 { return 0, nil, fmt.Errorf("unrecognized usage values: %q", unrecognized) } return keyUsage, sorted, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 5.7K bytes - Viewed (0) -
src/crypto/x509/verify_test.go
"CN=root -> CN=root", }, }, { // Build a basic graph with two paths from leaf to root, but the path passing // through C should be ignored, because it has invalid EKU nesting. name: "ignore invalid EKU path", graph: trustGraphDescription{ Roots: []rootDescription{{Subject: "root"}}, Leaf: "leaf", Graph: []trustGraphEdge{ { Issuer: "root",
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/crypto/x509/name_constraints_test.go
{ {}, }, }, leaf: leafSpec{ sans: []string{"dns:example.com"}, ekus: []string{"serverAuth", "other"}, }, }, // #62: The “any” EKU also means that any usage is ok. { roots: make([]constraintsSpec, 1), intermediates: [][]constraintsSpec{ { { ekus: []string{"any"}, }, }, }, leaf: leafSpec{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 22:40:21 UTC 2024 - 45.2K bytes - Viewed (0) -
src/crypto/x509/parser.go
} for !der.Empty() { var eku asn1.ObjectIdentifier if !der.ReadASN1ObjectIdentifier(&eku) { return nil, nil, errors.New("x509: invalid extended key usages") } if extKeyUsage, ok := extKeyUsageFromOID(eku); ok { extKeyUsages = append(extKeyUsages, extKeyUsage) } else { unknownUsages = append(unknownUsages, eku) } } return extKeyUsages, unknownUsages, nil }
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.go
if err != nil { return nil, err } } if len(opts.KeyUsages) == 0 { opts.KeyUsages = []ExtKeyUsage{ExtKeyUsageServerAuth} } for _, eku := range opts.KeyUsages { if eku == ExtKeyUsageAny { // If any key usage is acceptable, no need to check the chain for // key usages. return candidateChains, nil } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:58:39 UTC 2024 - 35.7K bytes - Viewed (0)