Need to use PFX certificate to login into my API

Hi Team,

Can you please advise how to user PFX certificate login.

would be very helpful if someone give sample code.


There is currently no support in k6 for the PFX cert format. You’ll have to convert it to PEM file.

There’re a plenty of tutorials online that you can see how to convert between them.

thanks for your help, now i m able to covert this.

now i am getting errror

tls: private key does not match public key

It’s likely that error due to your PFX to PEM conversion is wrong, or maybe PFX can be wrong format.