tlsAuth and JKS on runtime

Hi everyone,

I have a jks with certificates and keys. How can i change the certificates and keys on runtime under test?

Thanks and best regards,
Samer

I am not sure exactly what you are trying to do and I have never used a Java KeyStore (which is what I assume JKS stands for), sorry.

However, if your goal is to use different client-side TLS certificates for different HTTPS requests, then unfortunately that is not currently possible with k6 :disappointed: The only way to currently specify client-side certificates is the global tlsAuth option you’ve already mentioned. There is currently no way to specify different certificates during the runtime of a k6 test :frowning:

It’s a limitation to the current k6/http API that we’d like to change, follow these issues for updates: