Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for privateKeyPkcs1Pem (0.09 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

       * Returns the RSA private key encoded in [PKCS #1][rfc_8017] [PEM format][rfc_7468].
       *
       * [rfc_8017]: https://tools.ietf.org/html/rfc8017
       * [rfc_7468]: https://tools.ietf.org/html/rfc7468
       */
      fun privateKeyPkcs1Pem(): String {
        check(keyPair.private is RSAPrivateKey) { "PKCS1 only supports RSA keys" }
        return buildString {
          append("-----BEGIN RSA PRIVATE KEY-----\n")
          encodeBase64Lines(pkcs1Bytes())
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 21.6K bytes
    - Click Count (0)
  2. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

          |sXPVYAsGD1wizrXX+wFaL3chtF1oG1Fx/jcsSsG6BA==
          |-----END RSA PRIVATE KEY-----
          |
          """.trimMargin(),
        ).isEqualTo(heldCertificate.privateKeyPkcs1Pem())
        assertThat(
          """
          |-----BEGIN PRIVATE KEY-----
          |MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAICkUeG2stqfbyr6
          |gyiVm5pN9YEDRXlowi+rfYGyWhC7ouW9fXAnhgShQKMOU862mG3tcttSYGdsjM3z
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 22.6K bytes
    - Click Count (0)
Back to Top