Replies: 7 comments
-
👋 Thanks for opening your first issue! If you're reporting a 🐞 bug, please make sure To help make this a smooth process, please be sure you have first read the |
Beta Was this translation helpful? Give feedback.
-
Do you know if this is this new curl behavior? A few years ago this logic was definitely required and was the suggested way of doing in by the libcurl docs. It's the reason they provide an up-to-date CA bundle https://curl.haxx.se/docs/caextract.html I can't seem to find any mention of this requirement in the docs anymore but I also cannot find any information on the change. Also remember, Insomnia does not use the system's |
Beta Was this translation helpful? Give feedback.
-
I meant that it comes bundled with every linux distro these days, and insomnia on linux should set up the ca-certificates package as a dependency instead of bundling its own. I thought that this must be standardized in some way, but it doesn't look like it. Node seems to come with it hardcoded though: https://github.com/nodejs/node/blob/master/src/node_root_certs.h
(I'm sure there is a NPM package somewhere that finds the correct path for system root CA certs, but I can't find it) |
Beta Was this translation helpful? Give feedback.
-
Based on that it seems like the best idea might be to check those common directories and fallback to the bundled CAs if they don't exist. We could also make the path configurable in the app preferences. Let me know if you want to take this one on and I can point you in the right direction (if needed). |
Beta Was this translation helpful? Give feedback.
-
Sounds good. I'll wrap it into a separate NPM package if that makes sense (or if I can't find one). Just checking, but this wouldn't affect #675 right? |
Beta Was this translation helpful? Give feedback.
-
Yes, it should not affect #675. Unless you are also planning on making it configurable too. In that case, you'd be able to close #675. |
Beta Was this translation helpful? Give feedback.
-
Package created: https://www.npmjs.com/package/find-root-ca-cert |
Beta Was this translation helpful? Give feedback.
-
Details
Ref:
https://github.com/getinsomnia/insomnia/blob/776b3bd31e86f947dac26709a81d670cb3acc416/packages/insomnia-app/app/network/network.js#L348-L362
libcurl
on linux gives the same functionality, and there should be no need to rely on a insomnia-provided CA bundle.Beta Was this translation helpful? Give feedback.
All reactions