Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for generateCertificates (0.29 sec)

  1. okhttp-tls/src/main/kotlin/okhttp3/tls/Certificates.kt

     * ```
     */
    fun String.decodeCertificatePem(): X509Certificate {
      try {
        val certificateFactory = CertificateFactory.getInstance("X.509")
        val certificates =
          certificateFactory
            .generateCertificates(
              Buffer().writeUtf8(this).inputStream(),
            )
    
        return certificates.single() as X509Certificate
      } catch (nsee: NoSuchElementException) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (2)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Certificate.kt

        val data = CertificateAdapters.certificate.toDer(this)
        try {
          val certificateFactory = CertificateFactory.getInstance("X.509")
          val certificates = certificateFactory.generateCertificates(Buffer().write(data).inputStream())
          return certificates.single() as X509Certificate
        } catch (e: NoSuchElementException) {
          throw IllegalArgumentException("failed to decode certificate", e)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  3. 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);
    
    Java
    - Registered: Thu May 02 15:34:13 GMT 2024
    - Last Modified: Mon Nov 14 21:05:19 GMT 2022
    - 2.5K bytes
    - Viewed (1)
  4. 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);
    
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  5. 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)
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Nov 17 07:40:31 GMT 2020
    - 6.1K bytes
    - Viewed (0)
  6. internal/kms/kes.go

    	copy(endpoints, config.Endpoints)
    
    	var client *kes.Client
    	if config.APIKey != nil {
    		cert, err := kes.GenerateCertificate(config.APIKey)
    		if err != nil {
    			return nil, err
    		}
    		client = kes.NewClientWithConfig("", &tls.Config{
    			MinVersion:         tls.VersionTLS12,
    			Certificates:       []tls.Certificate{cert},
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Apr 16 15:43:39 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  7. 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)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  8. 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))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 40.3K bytes
    - Viewed (0)
Back to top