- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for certificatePem (0.43 sec)
-
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
* [certificatePem()][certificatePem] and [privateKeyPkcs8Pem()][privateKeyPkcs8Pem]. * * [rfc_7468]: https://tools.ietf.org/html/rfc7468 * [rfc_5208]: https://tools.ietf.org/html/rfc5208 */ @JvmStatic fun decode(certificateAndPrivateKeyPem: String): HeldCertificate { var certificatePem: String? = null var pkcs8Base64: String? = null
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-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt
|lu/GJQZoU9lDrCPeUcQ28tzOW6AKBggqhkjOPQMBBw== |-----END PRIVATE KEY----- | """.trimMargin() val heldCertificate = decode(certificatePem + pkcs8Pem) assertThat(heldCertificate.certificatePem()).isEqualTo(certificatePem) // Slightly different encoding if (platform.isBouncyCastle()) { assertThat(heldCertificate.privateKeyPkcs8Pem()).isEqualTo(bcPkcs8Pem) } else {
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/api/okhttp-tls.api
public final class okhttp3/tls/Certificates { public static final fun certificatePem (Ljava/security/cert/X509Certificate;)Ljava/lang/String; public static final fun decodeCertificatePem (Ljava/lang/String;)Ljava/security/cert/X509Certificate; } public final class okhttp3/tls/HandshakeCertificates { public final fun -deprecated_keyManager ()Ljavax/net/ssl/X509KeyManager; public final fun -deprecated_trustManager ()Ljavax/net/ssl/X509TrustManager;
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Feb 26 19:17:33 UTC 2022 - 3.7K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/Certificates.kt
import java.security.cert.X509Certificate import okio.Buffer import okio.ByteString import okio.ByteString.Companion.toByteString /** * Decodes a multiline string that contains a [certificate][certificatePem] which is * [PEM-encoded][rfc_7468]. A typical input string looks like this: * * ``` * -----BEGIN CERTIFICATE----- * MIIBYTCCAQegAwIBAgIBKjAKBggqhkjOPQQDAjApMRQwEgYDVQQLEwtlbmdpbmVl
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.8K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt
| """.trimMargin() val certificateByteString = certificateBase64.decodeBase64()!! val certificatePem = """ |-----BEGIN CERTIFICATE----- |$certificateBase64 |-----END CERTIFICATE----- | """.trimMargin() val javaCertificate = certificatePem.decodeCertificatePem() val okHttpCertificate = CertificateAdapters.certificate
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 43.9K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/CertificatesTest.kt
jaA9VEhgdaVhxBsT2qzUNDsXlOzGsliznDfoqETb -----END CERTIFICATE----- """.trimIndent() val certificate = certificateString.decodeCertificatePem() assertEquals(certificateString, certificate.certificatePem()) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.6K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/CertificatesJavaTest.java
+ "-----END CERTIFICATE-----\n"; X509Certificate certificate = Certificates.decodeCertificatePem(certificateString); assertEquals(certificateString, Certificates.certificatePem(certificate)); }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Fri Nov 20 02:23:18 UTC 2020 - 1.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt
val heldCertificate = HeldCertificate.Builder() .commonName("Foo Corp") .addSubjectAlternativeName("foo.com") .build() val session = session(heldCertificate.certificatePem()) assertThat(verifier.verify("foo.com", session)).isTrue() assertThat(verifier.verify("bar.com", session)).isFalse() } @Test fun specialKInHostname() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 40.3K bytes - Viewed (0) -
okhttp-tls/README.md
.build(); ``` PEM files --------- You can encode a `HeldCertificate` in PEM format: ```java HeldCertificate heldCertificate = ... System.out.println(heldCertificate.certificatePem()) ``` ``` -----BEGIN CERTIFICATE----- MIIBSjCB8aADAgECAgEBMAoGCCqGSM49BAMCMC8xLTArBgNVBAMTJDJiYWY3NzVl LWE4MzUtNDM5ZS1hYWE2LTgzNmNiNDlmMGM3MTAeFw0xODA3MTMxMjA0MzJaFw0x
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Dec 17 15:34:10 UTC 2023 - 9.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
val heldCertificate: HeldCertificate = HeldCertificate.Builder().build() 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
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 46.5K bytes - Viewed (0)