k6 icon indicating copy to clipboard operation
k6 copied to clipboard

pfx certificate format for k6 or Encrypted certificate support in k6

Open subp2022 opened this issue 1 year ago • 4 comments

Brief summary

Currently K6 does not support PFX certificate format; Many API specially inside a Banking System needs these kinds of Certificate while testing API

k6 version

0.50.0

OS

Windows 11

Docker version and image (if applicable)

joined-docker.artifactory.danskenet.net/grafana/k6:0.50.0

Steps to reproduce the problem

While Testing a API that needs PFX certificate format got the following error:

ERRO[0001] could not initialize ‘.\Basic_xxxx_POSTTLS.js’: could not load JS test ‘file:///C:/K6DemoProject/Basic_abcdefgh_POSTTLS.js’: tls: failed to find any PEM data in certificate input

Expected behaviour

There should be no error and API test should pass

Actual behaviour

This will be a nice addition to K6 feature list; For many banking system, Testing API with pfx certificate format is mandatory

subp2022 avatar Jun 20 '24 03:06 subp2022