Hello, i'm having difficulties setting up the ssl ...
# multiplatform
b
Hello, i'm having difficulties setting up the ssl certificate for android for my multiplatform with ktor. I have tried to follow the documentation available on ktor website/github (https://ktor.io/docs/client-ssl.html and https://github.com/ktorio/ktor-documentation/tree/2.3.11/codeSnippets/snippets/client-ssl-config), but to no avail. I'mm stuck at the first step of creating the SslSettings object due to not being able to open my keystore.jks. It is currently located at the root of my project and have tried to place it in nearly all the directories. Can anyone guide me to where it should be located/what path should be used when using FileInputStream?
a
I suggest to use nginx as reverse proxy and setup ssl in there, the library for setting up ssl in Ktor seems to be for testing purposes as mentioned in Ktor docs website, even if not, the docs recommend to use reverse proxy solution It's usually easier to setup ssl in there, I have a guide in GitHub gist, it's outdated and I wouldn't recommend it, it's still can be useful. Edit: Didn't know you were talking about Ktor client