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.


k6 does not support PFX cert format, you have to convert 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.