I want to configure MTLS for my scenario. I want to reuse connections, when using the option perUserKeyManagerFactory and shareConnections together, the key manager factory configured is ignored. While this seems logical, it means I can’t have a client certificate and a shared pool of connection.
So how can I achieve this?
Bonus: some validation should be added imho to fail fast in case of non compatible configurations.
val apiProtocol: HttpProtocolBuilder =
HttpDsl.http
.baseUrl(Configuration.apiBaseUrl)
.acceptHeader(“application/json”)
.contentTypeHeader(“application/json”)
.maxConnectionsPerHost(50)
.header(“Content-Type”, “application/json”)
.perUserKeyManagerFactory { _ → getClientKeyManagerFactory() } –> Is there some other option to configure the key store?