Is gatling provide support for multiple certs in keyStore?

I want to add multiple certs in gatling.config is this possible?

Hello Vikram,

Thanks for getting in touch. What are you trying to accomplish with passing multiple certificates? What is the goal here in terms of testing?

Thanks,
Pete

I want to initiate new SSLContext on scenario/service level.
For Example: - I have two different scenarios with different base URL(mTLS).
Whenever I start simulation, it should create new SSLContext depend on the base URL.

3 Likes

Honestly, I have no idea how client-side JSSE decides to pick one of the multiple certs installed in a JKS keystore.
As you want to per scenario behavior, as @GeMi indicated, the best solution is definitely using per-scenario protocol configuration and perUserKeyManagerFactory.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.