- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 45 for keyUsages (0.14 sec)
-
src/crypto/x509/root_windows.go
para := new(syscall.CertChainPara) para.Size = uint32(unsafe.Sizeof(*para)) keyUsages := opts.KeyUsages if len(keyUsages) == 0 { keyUsages = []ExtKeyUsage{ExtKeyUsageServerAuth} } oids := make([]*byte, 0, len(keyUsages)) for _, eku := range keyUsages { if eku == ExtKeyUsageAny { oids = nil break } if oid, ok := windowsExtKeyUsageOIDs[eku]; ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 19:41:40 UTC 2023 - 8.7K bytes - Viewed (0) -
src/crypto/x509/root_darwin.go
return nil, err } } keyUsages := opts.KeyUsages if len(keyUsages) == 0 { keyUsages = []ExtKeyUsage{ExtKeyUsageServerAuth} } // If any key usage is acceptable then we're done. for _, usage := range keyUsages { if usage == ExtKeyUsageAny { return chain, nil } } if !checkChainForKeyUsage(chain[0], keyUsages) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 01 00:36:38 UTC 2023 - 3.5K bytes - Viewed (0) -
security/pkg/pki/util/verify_cert.go
return fmt.Errorf("unexpected value for 'ExtKeyUsage' field: want %v but got %v", eku, cert.ExtKeyUsage) } if ku := expectedFields.KeyUsage; ku != cert.KeyUsage { return fmt.Errorf("unexpected value for 'KeyUsage' field: want %v but got %v", ku, cert.KeyUsage) } if isCA := expectedFields.IsCA; isCA != cert.IsCA { return fmt.Errorf("unexpected value for 'IsCA' field: want %t but got %t", isCA, cert.IsCA)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Sep 05 10:37:29 UTC 2022 - 5.9K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/renewal/filerenewer_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 28 04:36:54 UTC 2022 - 1.5K bytes - Viewed (0) -
src/crypto/tls/example_test.go
ClientAuth: tls.RequireAnyClientCert, VerifyConnection: func(cs tls.ConnectionState) error { opts := x509.VerifyOptions{ DNSName: cs.ServerName, Intermediates: x509.NewCertPool(), KeyUsages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth}, } for _, cert := range cs.PeerCertificates[1:] { opts.Intermediates.AddCert(cert) } _, err := cs.PeerCertificates[0].Verify(opts) return err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 18:23:49 UTC 2024 - 7.8K bytes - Viewed (0) -
src/crypto/x509/platform_test.go
} var opts VerifyOptions if tc.dnsName != "" { opts.DNSName = tc.dnsName } if !tc.time.IsZero() { opts.CurrentTime = tc.time } if len(tc.eku) > 0 { opts.KeyUsages = tc.eku } expectedErr := tc.expectedErr if runtime.GOOS == "darwin" && tc.macosErr != "" { expectedErr = tc.macosErr } else if runtime.GOOS == "windows" && tc.windowsErr != "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 17:18:29 UTC 2024 - 7.2K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/certlist_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 8.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/dynamic_cafile_content.go
// and requires certificates to be valid for client auth (x509.ExtKeyUsageClientAuth) func defaultVerifyOptions() x509.VerifyOptions { return x509.VerifyOptions{ KeyUsages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth}, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 8.4K bytes - Viewed (0) -
pkg/controller/certificates/authority/policies_test.go
testcases := []struct { usages []capi.KeyUsage expectedKeyUsage x509.KeyUsage expectedExtKeyUsage []x509.ExtKeyUsage expectErr bool }{ { usages: []capi.KeyUsage{"signing"}, expectedKeyUsage: x509.KeyUsageDigitalSignature, expectedExtKeyUsage: nil, expectErr: false, }, { usages: []capi.KeyUsage{"client auth"}, expectedKeyUsage: 0,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 05 22:45:34 UTC 2020 - 2.6K bytes - Viewed (0) -
pkg/test/csrctrl/authority/policies.go
// certificates API ("pkg/apis/certificates".KeyUsage) to x509.KeyUsage and // x509.ExtKeyUsage types. func keyUsagesFromStrings(usages []capi.KeyUsage) (x509.KeyUsage, []x509.ExtKeyUsage, error) { var keyUsage x509.KeyUsage var unrecognized []capi.KeyUsage extKeyUsages := make(map[x509.ExtKeyUsage]struct{}) for _, usage := range usages { if val, ok := keyUsageDict[usage]; ok { keyUsage |= val
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 03 17:06:22 UTC 2022 - 4.5K bytes - Viewed (0)