By default, since JDK7, JDK enables SNI by default.
This can cause SSL handshake exceptions, such as
handshake alert: unrecognized_name when server names are not properly configured on the server side.
Browsers are more loose than JDK regarding this.
If you want to disable SNI, you can set the following System property:
Default Gatling TrustStore is very permissive and doesn’t validate certificates, meaning that it works out of the box with self-signed certificates.
Sometimes, one might want to have virtual users with different KeyStores and TrustStores.
As KeyStores and TrustStores are define at the HTTP engine instance level, one first has to use disableClientSharing.
Then, simply pass the same properties as session attributes (manually or with a feeder).