-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Certificates are rejected by Node #78
Comments
That's what I have done in the past. How were you suggesting |
I figured since the Java trust store was supported it would fall in-scope, but totally understood if that's not the case (if so, maybe a note can be added to the And in regards to how, I assumed that a global environment variable could be set since |
Setting global env vars permanently is not easy to do universally and probably unexpected. What we can do though is document how to use |
Here's a solution for node, at least it worked for me:
|
@rfay that is exactly what @FiloSottile added to the README (as seen here) in the PR that fixed this issue. |
Node uses its own list of accepted CAs, not the system store, thus certificates generated by
mkcert
are rejected by Node requests.That said, as of Node v7.3.0, Node implements a
NODE_EXTRA_CA_CERTS
environment variable that can be used to specify extra rootCAs to trust. So it sounds like this could be remedied by setting this environment variable to the rootCA path during-install
.The text was updated successfully, but these errors were encountered: