JAVA_OPTS and gatling-sbt

Hi,

I am receiving an SSL handshake unrecognized_name error when using an
SSL cert which is configured in the keystore block of gatling.conf.

keyStore {
        type = "pkcs12" # Type of SSLContext's KeyManagers store
        file = "/etc/pki/tls/private/client.p12" # Location of
SSLContext's KeyManagers store
        password = “*******” # Password for SSLContext's KeyManagers store
}

After Googling, it looks like I may need to pass the Java option:
"java -Djsse.enableSNIExtension=false"

Could anyone tell me how I set a Java option for one particular script
using gatling-sbt?

Many Thanks

Aidy

Hi,

It’s simple, add :

javaOptions in Gatling := "-Djsse.enableSNIExtension=false”

And you’re good to go.

Cheers,

Pierre

Hi Pierre,

Thanks for getting back.

I have added this line to my build.sbt:

javaOptions in Gatling := "-Djsse.enableSNIExtension=false”

https://github.com/BBC/gatling-load-tests/blob/master/build.sbt#L12

But the value Gatling is not found (build.sbt:12: error: not found:
value Gatling)

Many Thanks

Aidy

This seems to work (build.sbt):

javaOptions in Test ++= Seq("-Djsse.enableSNIExtension=false")

Aidy