- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for privateKeyPkcs1Pem (0.17 sec)
-
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
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 22.5K bytes - Viewed (0) -
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())
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 21.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
val keyPair: KeyPair = heldCertificate.keyPair val certificatePem: String = heldCertificate.certificatePem() val privateKeyPkcs8Pem: String = heldCertificate.privateKeyPkcs8Pem() val privateKeyPkcs1Pem: String = heldCertificate.privateKeyPkcs1Pem() } @Test fun heldCertificateBuilder() { val keyPair: KeyPair = KeyPairGenerator.getInstance("").genKeyPair()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 46.5K bytes - Viewed (0)