- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 101 for commonName (0.47 sec)
-
okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt
val rootCa = HeldCertificate.Builder() .serialNumber(1L) .certificateAuthority(1) .commonName("root") .build() val intermediateCa = HeldCertificate.Builder() .signedBy(rootCa) .certificateAuthority(0) .serialNumber(2L) .commonName("intermediate_ca") .build() val certificate = HeldCertificate.Builder()
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 23.8K bytes - Viewed (0) -
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) -
pkg/controller/certificates/signer/signer_test.go
if err != nil { t.Fatalf("failed to parse certificate: %v", err) } if len(certs) != 1 { t.Fatalf("expected one certificate") } want := x509.Certificate{ Version: 3, Subject: pkix.Name{ CommonName: "system:node:k-a-node-s36b", Organization: []string{"system:nodes"}, }, KeyUsage: x509.KeyUsageDigitalSignature | x509.KeyUsageKeyEncipherment,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 02 21:12:04 UTC 2022 - 15K bytes - Viewed (0) -
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) -
okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt
.serialNumber(1L) .certificateAuthority(1) .commonName("root") .addSubjectAlternativeName("root_ca.com") .build() serverIntermediateCa = HeldCertificate.Builder() .signedBy(serverRootCa) .certificateAuthority(0) .serialNumber(2L) .commonName("intermediate_ca") .addSubjectAlternativeName("intermediate_ca.com") .build()
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 12.5K bytes - Viewed (0) -
security/pkg/pki/util/generate_cert_test.go
} if len(c.csrTemplate.Subject.CommonName) == 0 { if len(out.Subject.CommonName) > 0 { t.Errorf("Common name should be empty, but got %s", out.Subject.CommonName) } } else if out.Subject.CommonName != c.subjectIDs[0] { t.Errorf("Unmatched common name, expected %s, got %s", c.subjectIDs[0], out.Subject.CommonName) } if len(out.Subject.Organization) > 0 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 06 12:48:53 UTC 2023 - 29.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509.go
var CommonNameUserConversion = UserConversionFunc(func(chain []*x509.Certificate) (*authenticator.Response, bool, error) { if len(chain[0].Subject.CommonName) == 0 { return nil, false, nil } return &authenticator.Response{ User: &user.DefaultInfo{ Name: chain[0].Subject.CommonName, Groups: chain[0].Subject.Organization, }, }, true, nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 18 01:31:22 UTC 2023 - 10.3K bytes - Viewed (0) -
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) -
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) -
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)