Skip to content

DEPTH_ZERO_SELF_SIGNED_CERT - when using ng serve --proxy-config proxy.conf.json #2530

Closed
@ghost

Description

proxy.conf option for secure = false is not working to ignore the self signed certificate

Mac OSX El Capitan

Versions.

angular-cli: 1.0.0-beta.15
node: 4.4.5
os: darwin x64

Repro steps.

api is running at https://localhost:8443/api with self signed certificate

proxy.conf.json

{
  "/api": {
    "target": "https://localhost:8443/",
    "secure": "false"
  }
}

run ng serve --proxy-config proxy.conf.json
make a request to http://localhost:4200/api/**_something**_

The log given by the failure.

[HPM] Error occurred while trying to proxy request /api/_something_ from localhost:4200 to https://localhost:8443/ (DEPTH_ZERO_SELF_SIGNED_CERT) (https://nodejs.org/api/errors.html#errors_common_system_errors)

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: investigationRequires some digging to determine if action is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions