Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for common_name (0.12 sec)

  1. cmd/kubeadm/app/util/certs/util.go

    // the expected SubjectCommonName
    func AssertCertificateHasCommonName(t *testing.T, cert *x509.Certificate, commonName string) {
    	if cert.Subject.CommonName != commonName {
    		t.Errorf("cert has Subject.CommonName %s, expected %s", cert.Subject.CommonName, commonName)
    	}
    }
    
    // AssertCertificateHasOrganizations is a utility function for kubeadm testing that asserts if a given certificate has
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/phases/certs/renewal/manager_test.go

    		DNSNames:    []string{"test-domain.space"},
    		IPAddresses: []net.IP{netutils.ParseIPSloppy("10.100.0.1")},
    	}
    
    	cfg := certToConfig(cert)
    
    	if cfg.CommonName != expectedConfig.CommonName {
    		t.Errorf("expected common name %q, got %q", expectedConfig.CommonName, cfg.CommonName)
    	}
    
    	if len(cfg.Organization) != 1 || cfg.Organization[0] != expectedConfig.Organization[0] {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/certs/certlist.go

    		LongName: "self-signed Kubernetes CA to provision identities for other Kubernetes components",
    		BaseName: kubeadmconstants.CACertAndKeyBaseName,
    		config: pkiutil.CertConfig{
    			Config: certutil.Config{
    				CommonName: "kubernetes",
    			},
    		},
    	}
    }
    
    // KubeadmCertAPIServer is the definition of the cert used to serve the Kubernetes API.
    func KubeadmCertAPIServer() *KubeadmCert {
    	return &KubeadmCert{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  4. src/crypto/x509/x509_test.go

    			t.Errorf("%s: failed to parse excluded URIs: %#v", test.name, cert.ExcludedURIDomains)
    		}
    
    		if cert.Subject.CommonName != commonName {
    			t.Errorf("%s: subject wasn't correctly copied from the template. Got %s, want %s", test.name, cert.Subject.CommonName, commonName)
    		}
    
    		if len(cert.Subject.Country) != 1 || cert.Subject.Country[0] != "NL" {
    			t.Errorf("%s: ExtraNames didn't override Country", test.name)
    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. cmd/kubeadm/app/util/pkiutil/pki_helpers.go

    	if !cfg.NotAfter.IsZero() {
    		notAfter = cfg.NotAfter
    	}
    
    	tmpl := x509.Certificate{
    		SerialNumber: serial,
    		Subject: pkix.Name{
    			CommonName:   cfg.CommonName,
    			Organization: cfg.Organization,
    		},
    		DNSNames:              []string{cfg.CommonName},
    		NotBefore:             notBefore,
    		NotAfter:              notAfter,
    		KeyUsage:              keyUsage,
    		BasicConstraintsValid: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/sftp/SFTPServer.groovy

            }
        }
    
        static class SftpExpectOnePath extends SftpExpectOne {
    
            final String path
    
            SftpExpectOnePath(int type, String commandName, String path, boolean failing = false, boolean missing = false) {
                super(type, "$commandName for $path", failing, missing)
                this.path = path
            }
    
            protected boolean bufferMatches(Buffer buffer, int id) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  7. pkg/registry/certificates/certificates/storage/metrics_test.go

    )
    
    func Test_countCSRDurationMetric(t *testing.T) {
    	caPrivateKey, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
    	if err != nil {
    		t.Fatal(err)
    	}
    	caCert, err := certutil.NewSelfSignedCACert(certutil.Config{CommonName: "test-ca"}, caPrivateKey)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	tests := []struct {
    		name                       string
    		success                    bool
    		obj, old                   runtime.Object
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  8. cmd/kube-apiserver/app/testing/testserver.go

    			proxySigningKey, err = testutil.NewPrivateKey()
    			if err != nil {
    				return result, err
    			}
    			proxySigningCert, err = cert.NewSelfSignedCACert(cert.Config{CommonName: "front-proxy-ca"}, proxySigningKey)
    			if err != nil {
    				return result, err
    			}
    		}
    		proxyCACertFile := filepath.Join(s.SecureServing.ServerCert.CertDirectory, "proxy-ca.crt")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  9. security/pkg/server/ca/authenticate/xfcc_authenticator.go

    		return nil, fmt.Errorf(message)
    	}
    	ids := []string{}
    	for _, cc := range clientCerts {
    		ids = append(ids, cc.URI...)
    		ids = append(ids, cc.DNS...)
    		if cc.Subject != nil {
    			ids = append(ids, cc.Subject.CommonName)
    		}
    	}
    
    	return &security.Caller{
    		AuthSource: security.AuthSourceClientCertificate,
    		Identities: ids,
    	}, nil
    }
    
    func isTrustedAddress(addr string, trustedCidrs []string) bool {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 17:05:56 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. pkg/kubelet/certificate/kubelet.go

    		// don't return a template if we have no addresses to request for
    		if len(hostnames) == 0 && len(ips) == 0 {
    			return nil
    		}
    		return &x509.CertificateRequest{
    			Subject: pkix.Name{
    				CommonName:   fmt.Sprintf("system:node:%s", nodeName),
    				Organization: []string{"system:nodes"},
    			},
    			DNSNames:    hostnames,
    			IPAddresses: ips,
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 03:07:16 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top