Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 47 for commonName (0.17 sec)

  1. pkg/apis/certificates/v1beta1/defaults_test.go

    	for i, s := range opts.uris {
    		u, err := url.ParseRequestURI(s)
    		if err != nil {
    			panic(err)
    		}
    		uris[i] = u
    	}
    	template := &x509.CertificateRequest{
    		Subject: pkix.Name{
    			CommonName:   opts.cn,
    			Organization: []string{opts.org},
    		},
    		IPAddresses:    opts.ipAddresses,
    		DNSNames:       opts.dnsNames,
    		EmailAddresses: opts.emailAddresses,
    		URIs:           uris,
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 27 08:04:25 UTC 2022
    - 16.9K bytes
    - Viewed (0)
  2. src/crypto/x509/verify.go

    type HostnameError struct {
    	Certificate *Certificate
    	Host        string
    }
    
    func (h HostnameError) Error() string {
    	c := h.Certificate
    
    	if !c.hasSANExtension() && matchHostnames(c.Subject.CommonName, h.Host) {
    		return "x509: certificate relies on legacy Common Name field, use SANs instead"
    	}
    
    	var valid string
    	if ip := net.ParseIP(h.Host); ip != nil {
    		// Trying to validate an IP
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:39 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  3. pkg/kubelet/clustertrustbundle/clustertrustbundle_manager_test.go

    	if err != nil {
    		t.Fatalf("Error while generating key: %v", err)
    	}
    
    	template := &x509.Certificate{
    		SerialNumber: big.NewInt(0),
    		Subject: pkix.Name{
    			CommonName: cn,
    		},
    		IsCA:                  true,
    		BasicConstraintsValid: true,
    	}
    
    	cert, err := x509.CreateCertificate(rand.Reader, template, template, pub, priv)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 15.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/options/authentication.go

    		"If set, any request presenting a client certificate signed by one of "+
    		"the authorities in the client-ca-file is authenticated with an identity "+
    		"corresponding to the CommonName of the client certificate.")
    }
    
    // DelegatingAuthenticationOptions provides an easy way for composing API servers to delegate their authentication to
    // the root kube API server.  The API federator will act as
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 21 14:51:22 UTC 2023
    - 19.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/x509metrics/server_cert_deprecations_test.go

    	return false
    }
    
    func httpResponseWithCert() *http.Response {
    	return &http.Response{
    		TLS: &tls.ConnectionState{
    			PeerCertificates: []*x509.Certificate{
    				{Issuer: pkix.Name{CommonName: "a name"}},
    			},
    		},
    	}
    }
    
    func httpResponseNoCert() *http.Response {
    	return &http.Response{}
    }
    
    func testServer(t *testing.T, serverCert []byte) (*httptest.Server, *url.URL) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 25.5K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/apis/kubeadm/v1beta3/types.go

    type NodeRegistrationOptions struct {
    
    	// Name is the `.Metadata.Name` field of the Node API object that will be created in this `kubeadm init` or `kubeadm join` operation.
    	// This field is also used in the CommonName field of the kubelet's client certificate to the API server.
    	// Defaults to the hostname of the node if not provided.
    	// +optional
    	Name string `json:"name,omitempty"`
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go

    		pkiutil.EncodeCertPEM(clientCert),
    	), nil
    }
    
    func newClientCertConfigFromKubeConfigSpec(spec *kubeConfigSpec) pkiutil.CertConfig {
    	return pkiutil.CertConfig{
    		Config: certutil.Config{
    			CommonName:   spec.ClientName,
    			Organization: spec.ClientCertAuth.Organizations,
    			Usages:       []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth},
    		},
    		NotAfter:            spec.ClientCertNotAfter,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 27K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/constants/constants.go

    	FrontProxyClientKeyName = "front-proxy-client.key"
    	// FrontProxyClientCertCommonName defines front proxy certificate common name
    	FrontProxyClientCertCommonName = "front-proxy-client" //used as subject.commonname attribute (CN)
    
    	// AdminKubeConfigFileName defines name for the kubeconfig aimed to be used by the admin of the cluster
    	AdminKubeConfigFileName = "admin.conf"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 03:36:35 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/apis/kubeadm/types.go

    type NodeRegistrationOptions struct {
    
    	// Name is the `.Metadata.Name` field of the Node API object that will be created in this "kubeadm init" or "kubeadm join" operation.
    	// This field is also used in the CommonName field of the kubelet's client certificate to the API server.
    	// Defaults to the hostname of the node if not provided.
    	Name string
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 03:12:52 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/apis/kubeadm/v1beta4/types.go

    type NodeRegistrationOptions struct {
    
    	// Name is the `.Metadata.Name` field of the Node API object that will be created in this `kubeadm init` or `kubeadm join` operation.
    	// This field is also used in the CommonName field of the kubelet's client certificate to the API server.
    	// Defaults to the hostname of the node if not provided.
    	// +optional
    	Name string `json:"name,omitempty"`
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 03:12:52 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top