https://kotlinlang.org logo
Title
a

Alan Pierri

01/30/2019, 2:09 PM
I'm using ktor also as a client to connect to a https API with self-signed certificate, and I was wandering if there was any way to validate the requests knowing the other end has self-signed cert (skipping CA)
e

e5l

01/30/2019, 2:09 PM
Hi @Alan Pierri, what engine do you use?
a

Alan Pierri

01/30/2019, 2:10 PM
Hi! I'm using the default engine
But I might migrate to Apache
e

e5l

01/30/2019, 2:11 PM
You could configure certificate stuff with
SSLContext
in
Apache
🙂
🙂 1
a

Alan Pierri

01/30/2019, 2:14 PM
Great! Any docs on Apache engine configuration? (besides the sample config on ktor.io)
If you happen to know one already, if not I'll investigate. You've been very helpful!
e

e5l

01/30/2019, 2:17 PM
And use
customizeClient
in engine configuration to set
sslContext
👍 1
a

Alan Pierri

01/30/2019, 2:20 PM
Thanks!