- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for certificateAuthority (0.13 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt
val rootCa = HeldCertificate .Builder() .serialNumber(1L) .certificateAuthority(1) .commonName("root") .build() val intermediateCa = HeldCertificate .Builder() .signedBy(rootCa) .certificateAuthority(0) .serialNumber(2L) .commonName("intermediate_ca") .build() val certificate =Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 24.4K bytes - Click Count (2) -
okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt
platform.assumeNotConscrypt() platform.assumeNotBouncyCastle() val clientRoot = HeldCertificate .Builder() .certificateAuthority(1) .build() val clientIntermediate = HeldCertificate .Builder() .certificateAuthority(0) .signedBy(clientRoot) .build() val clientCertificate = HeldCertificate .Builder()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 08:16:15 GMT 2026 - 7.5K bytes - Click Count (0) -
okhttp-tls/README.md
We use `certificateAuthority(int)` to create certificates that can sign other certificates. The int specifies how many intermediate certificates are allowed beneath it in the chain. ```java HeldCertificate rootCertificate = new HeldCertificate.Builder() .certificateAuthority(1) .build(); HeldCertificate intermediateCertificate = new HeldCertificate.Builder()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:01:42 GMT 2026 - 9.1K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/ClientAuthTest.kt
HeldCertificate .Builder() .serialNumber(1L) .certificateAuthority(1) .commonName("root") .addSubjectAlternativeName("root_ca.com") .build() serverIntermediateCa = HeldCertificate .Builder() .signedBy(serverRootCa) .certificateAuthority(0) .serialNumber(2L) .commonName("intermediate_ca")Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 13K bytes - Click Count (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
* certificates). Set this to 1 so this certificate can sign intermediate certificates that can * themselves sign certificates. Add one for each additional layer of intermediates to permit. */ fun certificateAuthority(maxIntermediateCas: Int) = apply { require(maxIntermediateCas >= 0) { "maxIntermediateCas < 0: $maxIntermediateCas" } this.maxIntermediateCas = maxIntermediateCasCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 21.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt
builder = builder.keyPair(keyPair) builder = builder.keyPair(keyPair.public, keyPair.private) builder = builder.signedBy(HeldCertificate.Builder().build()) builder = builder.certificateAuthority(0) builder = builder.ecdsa256() builder = builder.rsa2048() val heldCertificate: HeldCertificate = builder.build() } @Test fun javaNetAuthenticator() {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Mar 10 21:47:20 GMT 2026 - 49.7K bytes - Click Count (0)