Closed dviljoen closed 11 months ago
Hi @dviljoen
Are you using custom ssl certificates or is the issue with localhost ssl errors?
We are developing an API server and use self-signed certs for development purposes.
But with "got" client:
can you confirm you are not using this right? - https://github.com/rangav/thunder-client-support#manual-ssl-certificates
You can test with axios yourself and see which config is working for you in the Post Request scripting.
sample script below:
const axios = require('axios');
var result = await axios.get("https://dvred:443/redapi/v1/setup_status");
console.log(result.data);
useful links https://www.codewithyou.com/blog/how-to-use-axios-to-handle-ssltls-certificate-verification-errors-in-nodejs https://github.com/rangav/thunder-client-support/blob/master/docs/filters.md#execute-requests
I don't understand the question about custom ssl vs. local host. It's neither. We generate a certificate for our api server. But we are the CA. It's self signed. That's the only issue. Just like you get the warning in a browser if you go to a self-signed cert on a web url. That's all I'm asking. How do I make axios do the thing that a browser can do when you click through the warning about a self-signed cert?
Ok got it.
please test this https://github.com/rangav/thunder-client-support/issues/1408#issuecomment-1812711518
Hi All, I made the small config changes to address this issue for axios
.
Can you guys please update the extension to v2.16.1
and let me know if it's working or not?
Just tried with v2.16.1 and got the same error: "self-signed certificate" Sorry.
Thanks for testing.
I reverted default http library back to got
. Please update to 2.16.2
Question: Just upgraded to 2.16.0 and request failed with "self-signed certificate" error. Switching to "got" http library works. How do I get axios to accept self-signed certs?
Are you using the free version/paid version/trial: Free version.