I managed to use Ktor's HttpClient (Apache) But wh...
# ktor
l
I managed to use Ktor's HttpClient (Apache) But when I try to call an HTTPs resource with a corporate certificate, it fails (logically). The question is : how can I provide HttpClient my custom trustStore ?
You could use ‘customizeClient’ method to provide certificate directly into Apache client :)
c
but there's no way to configure it with ios, am I right?
e
I have no details how to handle certificates programmatically in kotlin(on the iOS), but we’ll provide ‘raw’ request config in iOS engine
l
@e5l I use the 1.0.0-beta, and it seems that the dsl has changed ?! Did I miss something ?
d
What are you missing?
currentScope
is from
kotlinx.coroutines
If you are not specifying any engine, then you would only have there the basic configuration for all the engines (
HttpClientEngineConfig
)
If you was searching for
custom*
, you would have to specify the engine:
Copy code
HttpClient(Apache) {
    engine {
        customClient...
    }
}
👍 1
👆 1