how to configure multi certificates SSL


Hello,

I have a simulation of 2 scenarios, each scenario has a keyStore.jks file for SSL connection. How could I configure these 2 jks files. Thanks a lot!

ssl {
  trustStore {
    #type = ""      # Type of SSLContext's TrustManagers store
    #file = ""      # Location of SSLContext's TrustManagers store
    #password = ""  # Password for SSLContext's TrustManagers store
    #algorithm = "" # Algorithm used by SSLContext's TrustManagers store

    file="truststore.jks"
    password="truststorePassword"
  }
  keyStore {
    #type = ""      # Type of SSLContext's KeyManagers store
    #file = ""      # Location of SSLContext's KeyManagers store
    #password = ""  # Password for SSLContext's KeyManagers store
    #algorithm = "" # Algorithm used SSLContext's KeyManagers store
    type="JKS"
    file="keyStore.jks"
    password="keyStorePassword"
  }
}

You have to pass them on each virtual user, typically with an exec(function) or feeder: http://gatling.io/docs/2.1.7/http/http_ssl.html#per-virtual-user-stores