Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pfx certificate format for k6 or Encrypted certificate support in k6 #3804

Open
subp2022 opened this issue Jun 20, 2024 · 2 comments
Open

pfx certificate format for k6 or Encrypted certificate support in k6 #3804

subp2022 opened this issue Jun 20, 2024 · 2 comments
Labels
enhancement evaluation needed proposal needs to be validated or tested before fully implementing it in k6

Comments

@subp2022
Copy link

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 subp2022 added the bug label Jun 20, 2024
@joanlopez joanlopez removed their assignment Jun 20, 2024
@joanlopez joanlopez added enhancement evaluation needed proposal needs to be validated or tested before fully implementing it in k6 and removed bug triage labels Jun 20, 2024
@joanlopez
Copy link
Contributor

Hi @subp2022,

Thanks for submitting this feature request! 🙇🏻

Is all this about adding support for PFX to the standard TLS certificates already supported by k6?

@subp2022 subp2022 changed the title pfx certificate format for k6 or Encrypted tls certificate support in k6 Jun 20, 2024
@subp2022
Copy link
Author

Hi @joanlopez

Thanks for ur reply; yes this is more on encrypted certificate in pfx format;

I was getting this below error and got a suggestion in the forum to add it as future enhancement

https://community.grafana.com/t/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/123078

@oleiade oleiade removed the triage label Jun 20, 2024
@oleiade oleiade removed their assignment Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement evaluation needed proposal needs to be validated or tested before fully implementing it in k6
3 participants