- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for commonName (0.2 sec)
-
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) -
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) -
mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt
* Host header). */ @Test fun domainFronting() { val heldCertificate = HeldCertificate.Builder() .commonName("server name") .addSubjectAlternativeName("url-host.com") .build() val handshakeCertificates = HandshakeCertificates.Builder() .heldCertificate(heldCertificate)
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.9K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/TlsUtil.kt
private val localhost: HandshakeCertificates by lazy { // Generate a self-signed cert for the server to serve and the client to trust. val heldCertificate = HeldCertificate.Builder() .commonName("localhost") .addSubjectAlternativeName("localhost") .addSubjectAlternativeName("localhost.localdomain") .build() return@lazy HandshakeCertificates.Builder()
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.1K bytes - Viewed (0) -
okhttp-tls/README.md
.certificateAuthority(0) .build(); // Create a server certificate and a server that uses it. HeldCertificate serverCertificate = new HeldCertificate.Builder() .commonName("ingen") .addSubjectAlternativeName(server.getHostName()) .signedBy(rootCertificate) .build(); HandshakeCertificates serverCertificates = new HandshakeCertificates.Builder()
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sun Dec 17 15:34:10 UTC 2023 - 9.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/OpenJSSETest.kt
// Generate a self-signed cert for the server to serve and the client to trust. // can't use TlsUtil.localhost with a non OpenJSSE trust manager val heldCertificate = HeldCertificate.Builder() .commonName("localhost") .addSubjectAlternativeName("localhost") .build() val handshakeCertificates = HandshakeCertificates.Builder() .heldCertificate(heldCertificate)
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 3.7K bytes - Viewed (0) -
misc/ios/detect.go
check(f.Close()) cert, err := plistExtract(fname, "DeveloperCertificates:0") check(err) pcert, err := x509.ParseCertificate(cert) check(err) fmt.Printf("export GOIOS_DEV_ID=\"%s\"\n", pcert.Subject.CommonName) appID, err := plistExtract(fname, "Entitlements:application-identifier") check(err) fmt.Printf("export GOIOS_APP_ID=%s\n", appID)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:30 UTC 2023 - 3.2K bytes - Viewed (0) -
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) -
security/pkg/pki/util/generate_csr.go
if options.IsDualUse { cn, err := DualUseCommonName(h) if err != nil { // log and continue log.Errorf("dual-use failed for CSR template - omitting CN (%v)", err) } else { template.Subject.CommonName = cn } } template.ExtraExtensions = []pkix.Extension{*s} } return template, nil } // AppendRootCerts appends root certificates in RootCertFile to the input certificate.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 06 12:48:53 UTC 2023 - 4.1K bytes - Viewed (0) -
src/crypto/x509/hybrid_pool_test.go
t.Fatalf("tls connection failed: %s", err) } googChain := c.ConnectionState().PeerCertificates rootTmpl := &x509.Certificate{ SerialNumber: big.NewInt(1), Subject: pkix.Name{CommonName: "Go test root"}, IsCA: true, BasicConstraintsValid: true, NotBefore: time.Now().Add(-time.Hour), NotAfter: time.Now().Add(time.Hour * 10), }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:48:11 UTC 2024 - 3.7K bytes - Viewed (0)