Skip to content
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

CA certificate error #2

Open
nandofalcao opened this issue Oct 11, 2021 · 3 comments
Open

CA certificate error #2

nandofalcao opened this issue Oct 11, 2021 · 3 comments

Comments

@nandofalcao
Copy link

Example: 2-9., How to be your own Certificate Authority
Error in curl call: curl http://localhost:3000
{
"code": "DEPTH_ZERO_SELF_SIGNED_CERT",
"error": "Internal Server Error",
"message": "request to https://localhost:4000/recipes/42 failed, reason: self signed certificate",
"statusCode": 500
}

In Example 2-8 It's ok! In 2-9 no ok!

I added the code below to solve in "consumer-https-basic.js"
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0;

@tlhunter
Copy link
Owner

What kind of computer are you using?

@nandofalcao
Copy link
Author

Macbook with macOS Big Sur

@denismissias
Copy link

I'm having the same problem. windows 11 pro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants