k6 icon indicating copy to clipboard operation
k6 copied to clipboard

The document is not clear for calling https

Open manojgct84 opened this issue 3 years ago • 3 comments

Feature Description

I am trying to make HTTPS calls, when I use JMeter, I don't pass any cert.

When using K6, I am trying to use

export let options = { 
    maxRedirects: 4,tlsAuth: [{cert: CERT,key: KEY,},],
};

But I am getting WARN[0006] Request Failed error="Post "https://gcp.manoj.service.com": x509: “*.lab-us-gcp.manoj.service.com” certificate is not standards compliant"

Suggested Solution (optional)

No response

Already existing or connected issues / PRs (optional)

No response

manojgct84 avatar Aug 09 '22 10:08 manojgct84

What is your OS and the k6 version you are using? Because when searching for "certificate is not standards compliant", I stumble on a bunch of Go MacOS issues like https://github.com/golang/go/issues/51991 :thinking:

Also, please use the correct issue template when submitting an issue.

na-- avatar Aug 09 '22 10:08 na--

I am using macOS (Monterey) M1 Chip and K6 - 0.39.0 V.

manojgct84 avatar Aug 09 '22 11:08 manojgct84

I don't completely understand what's going on here, but from the issue I linked above, it seems like a Go problem specifically on MacOS, so I am not sure what we can do about it, if anything... :confused: If anyone knows or has MacOS and can reproduce this, please lend a hand.

na-- avatar Aug 09 '22 12:08 na--

Closing as the issue doesn't sound to be directly generated by k6. Feel free to reopen if you have more details.

codebien avatar Aug 15 '23 07:08 codebien