gatling can be compiled either with openssl or with mbedtls in order to be able to server https.
Building gatling with https support
The following are posts in most recent first order.
SSL and dietlibc March 2018, mbedtls and SNI working.
ssl 2016 describes what we knew then about serving the web via https with gatling. No SNI yet. Only openssl was working then.
Setup gatling for serving https
Certificates
Private key and full certificate chain has to be provided in one file,
ending with .pem
. These pem files have to be placed into the
directory where gatling is running.
The file server.pem
is the default file and is used for the initial
SNI handshake.
The files for a virtual domain must be named domain.pem
.
If a pem file is valid for several domains, make symlinks for each domain.
Make the pem files chown root.www-data
and chmod 640
.
Enable https in gatling
You must add -e -p 443
to the gatling commandline to enable
-e
ncryption on -p
ort 443. These options are only available for
ptlsgatling
and tlsgatling
.