Provide passphrase in SSL/TLS certificates

Hello,

I want to reproduce the configuration that I have in postman, I’m trying to send an api with ssl certificate.

image

According to k6, tthe doc https://k6.io/docs/using-k6/protocols/ssl-tls/ssl-tls-client-certificates/

The object contains

tlsAuth: [
{
domains: [‘example.com’],
cert: open(’./mycert.pem’),
key: open(’./mycert-key.pem’),
},
],

Unfortunately I can’t provide passphrase like in postman. Is there a solution ?

Hi @CAROLE,

Welcome to the forum :tada: : Will do my best to try and help you.

It does sound like you’re having the same issue as in this other topic: How to provide passphrase in SSL/TLS certificates - OSS Support - k6 community forum. If that’s indeed the case, k6 still doesn’t have native support for what you’re trying to do, but as pointed in this topic, there might be some workarounds worth trying.

Let me know if that’s helpful and if I can support you further! :bowing_man: