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

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

Closed
mtaobiz opened this issue Mar 20, 2025 · 1 comment

Comments

@mtaobiz
Copy link

mtaobiz commented Mar 20, 2025

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

@murgatroid99
Copy link
Member

This is fixed in version 1.13.1.

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

2 participants