Hi, when I run k6 I get the warning message “tlsAuth.domains option could be removed in the next releases. it’s recommended to leave it empty and let k6 automatically detect from the provided certificate.”
Following the documentation I am currently providing the mtls certificate for my host like so
export const options = {
vus: parseInt(`${__ENV.VUS}`),
duration: `${__ENV.DURATION}`,
tlsAuth: [
{
domains: [`${__ENV.HOSTNAME}`],
cert: open('./cert.pem'),
key: open('./key.pem'),
},
],
...
If this is removed in the future, what’s the recommended way to supply TLS certificates?
Thanks!