镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

CA certificate error #2

Open
Open

Description

@nandofalcao

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;

Activity

  1. tlhunter commented on Oct 13, 2021

    @tlhunter
    Owner

    What kind of computer are you using?

  2. nandofalcao commented on Oct 13, 2021

    @nandofalcao
    Author

    Macbook with macOS Big Sur

  3. denismissias commented on Aug 10, 2023

    @denismissias

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions