You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
The text was updated successfully, but these errors were encountered:
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;
The text was updated successfully, but these errors were encountered: