Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for privateKeyPkcs8Pem (0.55 sec)

  1. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

        // Slightly different encoding
        if (platform.isBouncyCastle()) {
          assertThat(heldCertificate.privateKeyPkcs8Pem()).isEqualTo(bcPkcs8Pem)
        } else {
          assertThat(heldCertificate.privateKeyPkcs8Pem()).isEqualTo(pkcs8Pem)
        }
        val certificate = heldCertificate.certificate
        assertThat(certificate.notBefore.time).isEqualTo(5000L)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (0)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

         * which will be ignored.
         *
         * Encode a held certificate into this format by concatenating the results of
         * [certificatePem()][certificatePem] and [privateKeyPkcs8Pem()][privateKeyPkcs8Pem].
         *
         * [rfc_7468]: https://tools.ietf.org/html/rfc7468
         * [rfc_5208]: https://tools.ietf.org/html/rfc5208
         */
        @JvmStatic
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.6K bytes
    - Viewed (1)
  3. okhttp-tls/api/okhttp-tls.api

    	public static final fun decode (Ljava/lang/String;)Lokhttp3/tls/HeldCertificate;
    	public final fun keyPair ()Ljava/security/KeyPair;
    	public final fun privateKeyPkcs1Pem ()Ljava/lang/String;
    	public final fun privateKeyPkcs8Pem ()Ljava/lang/String;
    }
    
    public final class okhttp3/tls/HeldCertificate$Builder {
    	public static final field Companion Lokhttp3/tls/HeldCertificate$Builder$Companion;
    	public fun <init> ()V
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Feb 26 19:17:33 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  4. okhttp-tls/README.md

    -----END CERTIFICATE-----
    ```
    
    You can also do so with the private key. Be careful with these!
    
    ```java
    HeldCertificate heldCertificate = ...
    System.out.println(heldCertificate.privateKeyPkcs8Pem())
    ```
    
    ```
    -----BEGIN PRIVATE KEY-----
    MIGTAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBHkwdwIBAQQgQbYDQiewSnregm9e
    IjXEHQgc6w3ELHdnH1houEUom9CgCgYIKoZIzj0DAQehRANCAAQ5pTomd3cQNs8N
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 9.1K bytes
    - Viewed (1)
  5. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        val certificate: X509Certificate = heldCertificate.certificate
        val keyPair: KeyPair = heldCertificate.keyPair
        val certificatePem: String = heldCertificate.certificatePem()
        val privateKeyPkcs8Pem: String = heldCertificate.privateKeyPkcs8Pem()
        val privateKeyPkcs1Pem: String = heldCertificate.privateKeyPkcs1Pem()
      }
    
      @Test
      fun heldCertificateBuilder() {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
  6. docs/changelogs/changelog_4x.md

            .build()
        val server = MockWebServer()
        server.useHttps(handshakeCertificates.sslSocketFactory(), false)
        ```
    
        Get these strings with `HeldCertificate.certificatePem()` and `privateKeyPkcs8Pem()`.
    
     *  Fix: Handshake now returns peer certificates in canonical order: each certificate is signed by
        the certificate that follows and the last certificate is signed by a trusted root.
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  7. docs/changelogs/changelog_3x.md

        builder then use it to sign another certificate or perform a TLS handshake. The
        `certificatePem()` method encodes the certificate in the familiar PEM format
        (`--- BEGIN CERTIFICATE ---`); the `privateKeyPkcs8Pem()` does likewise for the private key.
    
        `HandshakeCertificates` holds the TLS certificates required for a TLS handshake. On the server
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
Back to top