0

I have a certificate setup in Postman like belowenter image description here

Now, I manually copy the cert.pem and privateKey.pem as strings like :

val cert = "...."
val privatekey="...."

httpClient = HttpClientBuilder.create()
          .disableAutomaticRetries()
          .setDefaultRequestConfig(requestConfig)
          .setSSLContext(sslContext) // want to set sslContext

in Kotlin and I want to use Httpclient to set up the credential, how I can do it?

  1. Use Httpclient to load these strings and setup TLS credentaisl as Postman does
BoboSha
  • 3
  • 2

0 Answers0