Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for commonName (0.2 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/util.go

    // kube-apiserver usage of certs.
    func GetHumanCertDetail(certificate *x509.Certificate) string {
    	humanName := certificate.Subject.CommonName
    	signerHumanName := certificate.Issuer.CommonName
    	if certificate.Subject.CommonName == certificate.Issuer.CommonName {
    		signerHumanName = "<self>"
    	}
    
    	usages := []string{}
    	for _, curr := range certificate.ExtKeyUsage {
    		if curr == x509.ExtKeyUsageClientAuth {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 21 07:29:30 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  2. 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)
  3. security/pkg/pki/util/verify_cert.go

    				[]string{org}, cert.Issuer.Organization)
    		}
    
    		if cn := expectedFields.CommonName; cn != cert.Subject.CommonName {
    			return fmt.Errorf("unexpected value for 'CommonName' field: want %v but got %v",
    				cn, cert.Subject.CommonName)
    		}
    	}
    	return nil
    }
    
    func sortExtKeyUsage(extKeyUsage []x509.ExtKeyUsage) []int {
    	data := make([]int, len(extKeyUsage))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Sep 05 10:37:29 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  4. security/pkg/pki/testdata/multilevelpki/int-cert.cfg

    countryName_default = US
    stateOrProvinceName = CA
    stateOrProvinceName_default = CA
    localityName = Sunnyvale
    localityName_default = Sunnyvale
    organizationalUnitName = Istio
    organizationalUnitName_default = Istio
    commonName = Intermediate CA
    commonName_default = Intermediate CA
    commonName_max  = 64
    
    [v3_req]
    basicConstraints = CA:TRUE
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 06 04:49:04 UTC 2018
    - 526 bytes
    - Viewed (0)
  5. security/pkg/pki/testdata/multilevelpki/int2-cert.cfg

    countryName_default = US
    stateOrProvinceName = CA
    stateOrProvinceName_default = CA
    localityName = Sunnyvale
    localityName_default = Sunnyvale
    organizationalUnitName = Istio
    organizationalUnitName_default = Istio
    commonName = Intermediate CA2
    commonName_default = Intermediate CA2
    commonName_max  = 64
    
    [v3_req]
    basicConstraints = CA:TRUE
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 06 04:49:04 UTC 2018
    - 528 bytes
    - Viewed (0)
  6. src/crypto/x509/pkix/pkix.go

    	ret = n.appendRDNs(ret, n.PostalCode, oidPostalCode)
    	ret = n.appendRDNs(ret, n.Organization, oidOrganization)
    	ret = n.appendRDNs(ret, n.OrganizationalUnit, oidOrganizationalUnit)
    	if len(n.CommonName) > 0 {
    		ret = n.appendRDNs(ret, []string{n.CommonName}, oidCommonName)
    	}
    	if len(n.SerialNumber) > 0 {
    		ret = n.appendRDNs(ret, []string{n.SerialNumber}, oidSerialNumber)
    	}
    	for _, atv := range n.ExtraNames {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  7. security/pkg/pki/util/generate_csr_test.go

    			IsDualUse:  true,
    		}
    
    		csr, err := GenCSRTemplate(opts)
    		if err != nil {
    			t.Error(err)
    		}
    
    		if csr.Subject.CommonName != tc.expectedCN {
    			t.Errorf("unexpected value for 'CommonName' field: want %v but got %v", tc.expectedCN, csr.Subject.CommonName)
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 25 09:40:13 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  8. pkg/apis/certificates/helpers.go

    	if !kubeletServingRequiredUsages.Equal(usages) && !kubeletServingRequiredUsagesNoRSA.Equal(usages) {
    		return fmt.Errorf("usages did not match %v", kubeletServingRequiredUsages.List())
    	}
    
    	if !strings.HasPrefix(req.Subject.CommonName, "system:node:") {
    		return commonNameNotSystemNode
    	}
    
    	return nil
    }
    
    var (
    	kubeletClientRequiredUsagesNoRSA = sets.NewString(
    		string(UsageDigitalSignature),
    		string(UsageClientAuth),
    	)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 27 08:04:25 UTC 2022
    - 4K bytes
    - Viewed (0)
  9. samples/bookinfo/platform/kube/bookinfo-certificate.yaml

    kind: Certificate
    metadata:
      name: istio-ingressgateway-certs
      namespace: istio-system
    spec:
      secretName: istio-ingressgateway-certs
      issuerRef:
        name: letsencrypt-staging
        kind: ClusterIssuer
      commonName: bookinfo.example.com
      dnsNames:
      - bookinfo.example.com
      acme:
        config:
        - http01:
            ingressClass: none
          domains:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 02 15:32:24 UTC 2019
    - 914 bytes
    - Viewed (0)
  10. security/pkg/pki/util/dual_use.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package util
    
    import (
    	"fmt"
    	"strings"
    )
    
    // DualUseCommonName extracts a valid CommonName from a comma-delimited host string
    // for dual-use certificates.
    func DualUseCommonName(host string) (string, error) {
    	// cn uses one hostname, drop the rest
    	first := strings.SplitN(host, ",", 2)[0]
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 29 20:42:01 UTC 2020
    - 1.1K bytes
    - Viewed (0)
Back to top