-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
error: SELF_SIGNED_CERT_IN_CHAIN downloading package manifest #7124
Comments
@Jarred-Sumner do you happen to know if handling self-signed certs is a missing feature in Bun, or if there is already a way to do this that I'm not aware of? |
We still do not support |
Is there a timeline for this? I've been migrating some services to Bun and this is a show stopper due to strict security requirements |
Just tried this on a fresh installation of Ubuntu. Bun recognizes certificates from the default certificate store ( |
I don't think this is intentional tbh |
I think using the operating system's certificate store as the default is okay. At least this is what Golang is doing. It is good to provide an option to update the setting (something like |
I just faced the same issue as well. SELF_SIGNED_CERT_IN_CHAIN: self signed certificate in certificate chain |
Same for me |
I also have this issue on a corporate Macbook. |
I've tried NODE_TLS_REJECT_UNAUTHORIZED, as a work around. Bun install succeeded without complaining SELF_SIGNED_CERT_IN_CHAIN, but that didn't download the package properly. This is strange!!! Any idea when this would be supported or is there a work around? |
What version of Bun is running?
1.0.11+f7f6233ea
What platform is your computer?
Darwin 22.6.0 arm64 arm
What steps can reproduce the bug?
I am on a corporate laptop that uses a company self-signed cert.
I ran the command:
bun install -g aws-cdk
and got the following output:I tried following Node's solution for this issue, and I set the following environment variable:
This didn't seem to work. I also tried
BUN_EXTRA_CA_CERTS
, but that didn't work either.What is the expected behavior?
Ideally, it would be possible to set an environment variable that points to my CA file, in precisely the same way it works for Node. (Or some other user-friendly method that is clearly documented.)
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: