-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Node unable to verify the first certificate error #563
Comments
I got same issue, any update @FiloSottile ? |
I just found a solution, in the terminal when you are starting up the server I just had to include the directory of the rootCA.pem file:
|
export NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem" in |
After using
|
Environment
mkcert -version
): v1.4.4What you did
I followed the instructions, first doing
mkcert -install
Entered
mkcert -cert-file ~/cert.pem -key-file ~/key.pem localhost
Here are my options for both frontend and backend Node.js https servers:
I tried adding the ca property, I found a post mentioning it and then I found an example on how to use ca on node's website.
Finally added
export NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem"
to both my frontend and backend .env files, according to the README.md and this IssueAlso tried changing
export NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem"
to/Users/blahblahblah/Library/blahblahblah/mkcert/rootCA.pem
What went wrong
The text was updated successfully, but these errors were encountered: