https://kotlinlang.org logo
Title
g

Gabriel Luchtenberg

01/20/2023, 12:46 PM
is there a way to use
.crt
files to mutual tls on ktor? (for ktor http client, on ktor server) Or do I have to create a
.jks
file 😒ad-panda:
a

Andrew O'Hara

01/20/2023, 4:37 PM
Seems like JKS only. Out of curiosity, is it necessary for the app to provide TLS? Usually this is best provided by your load balancer, API gateway, or an nginx reverse proxy.
g

Gabriel Luchtenberg

01/20/2023, 4:41 PM
unfortunately, it is 😒ad-panda: I’m calling a bank third party API that requires that all the api calls go through mTLS
a

Andrew O'Hara

01/20/2023, 4:44 PM
Ah, the things I've done to get away from mTLS. I'm not entirely sure mTLS precludes nginx, but I'll take your word for it. I just wonder if your app can send your requests to an nginx proxy, which then forwards it to the bank with mTLS.