- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 84 for keyUsages (0.16 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) -
src/crypto/x509/verify.go
// the order of the bit flags in the keyUsage due to confusion over // encoding endianness, essentially setting a random keyUsage in // certificates that it issued. Another CA created a self-invalidating // certificate by adding a certificate policy statement stipulating // that the certificate had to be used strictly as specified in the // keyUsage, and a keyUsage containing a flag indicating that the RSA
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:58:39 UTC 2024 - 35.7K 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) -
staging/src/k8s.io/api/certificates/v1beta1/types.go
UsageKeyAgreement KeyUsage = "key agreement" UsageDataEncipherment KeyUsage = "data encipherment" UsageCertSign KeyUsage = "cert sign" UsageCRLSign KeyUsage = "crl sign" UsageEncipherOnly KeyUsage = "encipher only" UsageDecipherOnly KeyUsage = "decipher only" UsageAny KeyUsage = "any" UsageServerAuth KeyUsage = "server auth" UsageClientAuth KeyUsage = "client auth"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Dec 18 04:27:38 UTC 2022 - 10.4K bytes - Viewed (0) -
src/crypto/x509/verify_test.go
roots: []string{smimeRoot}, currentTime: 1594673418, keyUsages: []ExtKeyUsage{ExtKeyUsageServerAuth}, errorCallback: expectUsageError, }, { name: "EKULeafValid", leaf: smimeLeaf, intermediates: []string{smimeIntermediate}, roots: []string{smimeRoot}, currentTime: 1594673418, keyUsages: []ExtKeyUsage{ExtKeyUsageEmailProtection},
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/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)