- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 101 for commonName (0.16 sec)
-
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) -
cmd/kubeadm/app/phases/certs/renewal/filerenewer_test.go
// creates a File renewer using a test Certificate authority fr := NewFileRenewer(testCACert, testCAKey) // renews a certificate certCfg := &pkiutil.CertConfig{ Config: certutil.Config{ CommonName: "test-certs", AltNames: certutil.AltNames{ DNSNames: []string{"test-domain.space"}, }, Usages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth}, }, } cert, _, err := fr.Renew(certCfg)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 28 04:36:54 UTC 2022 - 1.5K bytes - Viewed (0) -
src/crypto/x509/root_unix_test.go
for i, cn := range tc.cns { if i >= r.len() { t.Errorf("missing cert %v @ %v", cn, i) } else if r.mustCert(t, i).Subject.CommonName != cn { fmt.Printf("%#v\n", r.mustCert(t, 0).Subject) t.Errorf("unexpected cert common name %q, want %q", r.mustCert(t, i).Subject.CommonName, cn) } } if r.len() > len(tc.cns) { t.Errorf("got %v certs, which is more than %v wanted", r.len(), len(tc.cns)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 01 00:36:38 UTC 2023 - 6.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/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt
), ), ) } @Test fun `certificate attributes`() { val certificate = HeldCertificate.Builder() .certificateAuthority(3) .commonName("Jurassic Park") .organizationalUnit("Gene Research") .addSubjectAlternativeName("*.example.com") .addSubjectAlternativeName("www.example.org") .validityInterval(-1000L, 2000L)
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 43.9K bytes - Viewed (0) -
src/crypto/x509/x509_test_import.go
if err != nil { panic("Failed to parse private key: " + err.Error()) } template := x509.Certificate{ SerialNumber: big.NewInt(1), Subject: pkix.Name{ CommonName: "test", Organization: []string{"Σ Acme Co"}, }, NotBefore: time.Unix(1000, 0), NotAfter: time.Unix(100000, 0), KeyUsage: x509.KeyUsageCertSign, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 1.7K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
* [addSubjectAlternativeName]. If unset a random string will be used. * * [rfc_2818]: https://tools.ietf.org/html/rfc2818 */ fun commonName(cn: String) = apply { this.commonName = cn } /** Sets the certificate's organizational unit (OU). If unset this field will be omitted. */ fun organizationalUnit(ou: String) = apply {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 21.6K bytes - Viewed (0) -
pkg/controller/certificates/authority/authority.go
} serialNumber, err := rand.Int(rand.Reader, serialNumberLimit) if err != nil { return nil, fmt.Errorf("unable to generate a serial number for %s: %v", cr.Subject.CommonName, err) } tmpl := &x509.Certificate{ SerialNumber: serialNumber, Subject: cr.Subject, DNSNames: cr.DNSNames, IPAddresses: cr.IPAddresses,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 23 19:36:11 UTC 2021 - 2.5K bytes - Viewed (0) -
security/pkg/pki/util/generate_cert.go
// In this case, set CN as determined by DualUseCommonName(subjectIDsInString). if len(csr.Subject.CommonName) != 0 { if cn, err := DualUseCommonName(subjectIDsInString); err != nil { // log and continue log.Errorf("dual-use failed for cert template - omitting CN (%v)", err) } else { subject.CommonName = cn } } now := time.Now() serialNum, err := genSerialNum() if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 02 14:34:38 UTC 2023 - 14.2K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/certs_test.go
} assert.ElementsMatch(t, certConfig.Organization, csr.Subject.Organization, "organizations not equal") if csr.Subject.CommonName != certConfig.CommonName { t.Errorf("expected common name %q, got %q", certConfig.CommonName, csr.Subject.CommonName) } assert.ElementsMatch(t, certConfig.AltNames.DNSNames, csr.DNSNames, "dns names not equal")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 31 21:49:21 UTC 2024 - 23.3K bytes - Viewed (0)