- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 101 for commonName (0.15 sec)
-
security/pkg/pki/util/keycertbundle.go
} opts := &CertOptions{ Host: ids[0], Org: b.cert.Issuer.Organization[0], IsCA: b.cert.IsCA, TTL: b.cert.NotAfter.Sub(b.cert.NotBefore), IsDualUse: ids[0] == b.cert.Subject.CommonName, } switch (*b.privKey).(type) { case *rsa.PrivateKey: size, err := GetRSAKeySize(*b.privKey) if err != nil { return nil, fmt.Errorf("failed to get RSA key size: %v", err) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Jan 21 06:07:50 UTC 2024 - 10.5K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/renewal/readwriter_test.go
func writeTestKubeconfig(t *testing.T, dir, name string, caCert *x509.Certificate, caKey crypto.Signer, notBefore, notAfter time.Time) *x509.Certificate { cfg := &pkiutil.CertConfig{ Config: certutil.Config{ CommonName: "test-common-name", Organization: testCertOrganization, Usages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth}, AltNames: certutil.AltNames{ IPs: []net.IP{netutils.ParseIPSloppy("10.100.0.1")},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 15:17:24 UTC 2024 - 9.5K bytes - Viewed (0) -
cluster/images/etcd/migrate/integration_test.go
priv, err := rsa.GenerateKey(cryptorand.Reader, 2048) if err != nil { return nil, nil, err } template := x509.Certificate{ SerialNumber: big.NewInt(1), Subject: pkix.Name{ CommonName: fmt.Sprintf("%s@%d", host, time.Now().Unix()), }, NotBefore: time.Unix(0, 0), NotAfter: time.Now().Add(time.Hour * 24 * 365 * 100),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 28 07:33:23 UTC 2022 - 11.4K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt
*/ private val localhostHandshakeCertificatesWithRsa2048: HandshakeCertificates by lazy { val heldCertificate = HeldCertificate.Builder() .commonName("localhost") .addSubjectAlternativeName("localhost") .rsa2048() .build() return@lazy HandshakeCertificates.Builder() .heldCertificate(heldCertificate)
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 15.3K bytes - Viewed (0) -
cmd/kubeadm/app/util/config/cluster.go
// For details, see: https://www.rfc-editor.org/rfc/rfc4346#section-7.4.2 cert := certs[0] // gets the node name from the certificate common name return strings.TrimPrefix(cert.Subject.CommonName, constants.NodesUserPrefix), nil } func getAPIEndpoint(client clientset.Interface, nodeName string, apiEndpoint *kubeadmapi.APIEndpoint) error { return getAPIEndpointWithRetry(client, nodeName, apiEndpoint,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 11:04:08 UTC 2024 - 11K bytes - Viewed (0) -
src/crypto/x509/name_constraints_test.go
var serialBytes [16]byte rand.Read(serialBytes[:]) template := &Certificate{ SerialNumber: new(big.Int).SetBytes(serialBytes[:]), Subject: pkix.Name{ CommonName: name, }, NotBefore: time.Unix(1000, 0), NotAfter: time.Unix(2000, 0), KeyUsage: KeyUsageCertSign, BasicConstraintsValid: true, IsCA: true,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 22:40:21 UTC 2024 - 45.2K bytes - Viewed (0) -
cmd/kubelet/app/server_bootstrap_test.go
serverPrivateKey, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader) if err != nil { t.Fatal(err) } serverCA, err := certutil.NewSelfSignedCACert(certutil.Config{ CommonName: "the-test-framework", }, serverPrivateKey) if err != nil { t.Fatal(err) } server := &csrSimulator{ t: t, serverPrivateKey: serverPrivateKey, serverCA: serverCA, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 01 05:59:41 UTC 2022 - 10.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/options/serving_test.go
priv, err := rsa.GenerateKey(cryptorand.Reader, 2048) if err != nil { return nil, nil, err } template := x509.Certificate{ SerialNumber: big.NewInt(1), Subject: pkix.Name{ CommonName: fmt.Sprintf("%s@%d", host, time.Now().Unix()), }, NotBefore: time.Unix(0, 0), NotAfter: time.Now().Add(time.Hour * 24 * 365 * 100),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 09 15:52:39 UTC 2024 - 13.8K bytes - Viewed (0) -
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) -
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)