Hi,,
Sorry it took time to test because my simulation was based on gatling 2.
With the new code I am not able to connect to my application with client certificate. I noticed with basic tests that only my trustStore was used in the test
Then, I looked at the code in git and I think I found a bug in gatling-http/src/main/scala/com/excilys/ebi/gatling/http/ahc/GatlingHttpClient.scala:
val trustManagers = for {
storeType <- session.getAttributeAsOption[String](CONF_HTTP_SSS_TRUST_STORE_TYPE)
file <- session.getAttributeAsOption[String](CONF_HTTP_SSS_TRUST_STORE_FILE)
password <- session.getAttributeAsOption[String](CONF_HTTP_SSS_TRUST_STORE_PASSWORD)
algorithm = session.getAttributeAsOption[String](CONF_HTTP_SSS_TRUST_STORE_ALGORITHM)
} yield newTrustManagers(storeType, file, password, algorithm)
val keyManagers = for {
storeType <- session.getAttributeAsOption[String](CONF_HTTP_SSS_TRUST_STORE_TYPE)
file <- session.getAttributeAsOption[String](CONF_HTTP_SSS_TRUST_STORE_FILE)
password <- session.getAttributeAsOption[String](CONF_HTTP_SSS_TRUST_STORE_PASSWORD)
algorithm = session.getAttributeAsOption[String](CONF_HTTP_SSS_TRUST_STORE_ALGORITHM)
} yield newKeyManagers(storeType, file, password, algorithm)
but I think it should be:
val trustManagers = for {
storeType <- session.getAttributeAsOption[String](CONF_HTTP_SSS_TRUST_STORE_TYPE)
file <- session.getAttributeAsOption[String](CONF_HTTP_SSS_TRUST_STORE_FILE)
password <- session.getAttributeAsOption[String](CONF_HTTP_SSS_TRUST_STORE_PASSWORD)
algorithm = session.getAttributeAsOption[String](CONF_HTTP_SSS_TRUST_STORE_ALGORITHM)
} yield newTrustManagers(storeType, file, password, algorithm)
val keyManagers = for {
storeType <- session.getAttributeAsOption[String](CONF_HTTP_SSS_KEY_STORE_TYPE)
file <- session.getAttributeAsOption[String](CONF_HTTP_SSS_KEY_STORE_FILE)
password <- session.getAttributeAsOption[String](CONF_HTTP_SSS_KEY_STORE_PASSWORD)
algorithm = session.getAttributeAsOption[String](CONF_HTTP_SSS_KEY_STORE_ALGORITHM)
} yield newKeyManagers(storeType, file, password, algorithm)
I don't know how to recompile everything and to test my patch. Can you tell me if you think this will fix my issue and provide me a new gatling environment ?
Thanks