I have to send a request to a specific endpoint via Ktor. I have tested the endpoint using Postman and it works fine.
In Postman, before sending the request I have to add a client certificate by:
- Mentioning Host and Port number
- Attaching PFX file (which I already have)
- Specifying the passphrase
How do I do the same in Ktor (OkHttp Engine)? I tried configuring the engine settings by following the instructions in this link, but it does not ask for the host and port, and I do not know how to attach the PFX file to the keystore.