Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for GenerateCertificate (0.18 sec)

  1. src/test/java/org/codelibs/curl/CurlTest.java

            final String filename = "config/certs/http_ca.crt";
            try (InputStream in = new FileInputStream(filename)) {
                Certificate certificate = CertificateFactory.getInstance("X.509").generateCertificate(in);
    
                KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
                keyStore.load(null, null);
                keyStore.setCertificateEntry("server", certificate);
    
    Registered: Thu Oct 31 02:32:13 UTC 2024
    - Last Modified: Mon Nov 14 21:05:19 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  2. regression-test/src/androidTest/java/okhttp/regression/LetsEncryptTest.java

                  "-----END CERTIFICATE-----";
    
          CertificateFactory cf = CertificateFactory.getInstance("X.509");
          Certificate isgCertificate = cf.generateCertificate(new ByteArrayInputStream(isgCert.getBytes("UTF-8")));
    
          HandshakeCertificates certificates = new HandshakeCertificates.Builder()
                  .addTrustedCertificate((X509Certificate) isgCertificate)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Nov 17 07:40:31 UTC 2020
    - 6.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/CurlHelper.java

                }
                try (final InputStream in = new FileInputStream(authorities)) {
                    final Certificate certificate = CertificateFactory.getInstance("X.509").generateCertificate(in);
    
                    final KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
                    keyStore.load(null, null);
                    keyStore.setCertificateEntry("server", certificate);
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. internal/kms/config.go

    		}
    		if s := env.Get(EnvKESAPIKey, ""); s != "" {
    			key, err := kes.ParseAPIKey(s)
    			if err != nil {
    				return nil, err
    			}
    
    			cert, err := kes.GenerateCertificate(key)
    			if err != nil {
    				return nil, err
    			}
    			conf.GetClientCertificate = func(*tls.CertificateRequestInfo) (*tls.Certificate, error) { return &cert, nil }
    		} else {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 11:46:39 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/Cache.kt

              val bytes = Buffer()
              val certificateBytes = line.decodeBase64() ?: throw IOException("Corrupt certificate in cache entry")
              bytes.write(certificateBytes)
              result.add(certificateFactory.generateCertificate(bytes.inputStream()))
            }
            return result
          } catch (e: CertificateException) {
            throw IOException(e.message)
          }
        }
    
        @Throws(IOException::class)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt

        assertThat("www.nintendo.co.jp".canParseAsIpAddress()).isFalse()
      }
    
      private fun certificate(certificate: String): X509Certificate {
        return CertificateFactory.getInstance("X.509")
          .generateCertificate(ByteArrayInputStream(certificate.toByteArray()))
          as X509Certificate
      }
    
      private fun session(certificate: String): SSLSession = FakeSSLSession(certificate(certificate))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 40.3K bytes
    - Viewed (0)
Back to top