Skip to content

Error DEPTH_ZERO_SELF_SIGNED_CERT after upgrading from grpc-js 1.12.6 to 1.13.0 #2924

@mtaobiz

Description

@mtaobiz

Problem description

I`m using

credentials = grpc.credentials.createSsl(null, null, null, {
                rejectUnauthorized: false
            });

to pass self signed certifacate check. After upgrading to version 1.13.0 my code produces error:

14 UNAVAILABLE: No connection established. Last error: DEPTH_ZERO_SELF_SIGNED_CERT

Reproduction steps

Use code like this to connect to service with self signed certificate:

const credentials = grpc.credentials.createSsl(null, null, null, {
                rejectUnauthorized: false
            })
const svc = new grpcPkg[pkg_name][service_name](options.addr, credentials, {})

svc[method]({}, (err, res) => {})

Environment

  • OS name, version and architecture: [e.g. Linux Ubuntu 18.04 amd64]
  • Node version [e.g. 8.10.0]
  • Node installation method [e.g. nvm]
  • If applicable, compiler version [e.g. clang 3.8.0-2ubuntu4]
  • Package name and version [e.g. [email protected]]

OS: Linux Debian
Node: v18.16.1
@grpc/grpc-js 1.13.0

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions