ktor - okhttp - send a post request with key and pem certificate
I use Ktor with okhttp. My customer has a query which needs a Mutual TLS. I have the key and the pem certificate but I didn't manage to use them correctly.
No problem with curl with this command:
curl --key mykey.key --cert mycert.pem https://someurl.com/my-endpoint
I don't have a trust certificate or something like that.
Have you got an example in Kotlin please ?
Thanks