Skip to content

TLS connection - Error: 14 UNAVAILABLE: Connect Failed #50

@mkucharz

Description

@mkucharz

I'm trying to set up secure GRPC connection. What have I done so far:

  • generate certs using dgraph cert
  • verify fingerprints and certs using open ssl (openssl verify -verbose -CAfile ca.crt node.crt)
  • check the connection and certs crescents with openssl s_client -connect 176.9.122.98:9080 -CAfile ca.crt
  • set up connection:
const rootCert = fs.readFileSync(path.join(__dirname, 'certs', 'ca.crt'))
const clientData = new dgraph.DgraphClientStub(
  '<my_external_machine_IP_address>:9080',
   grpc.credentials.createSsl(rootCert)
)
  • try to connect: Error: 14 UNAVAILABLE: Connect Failed

In addition i configured NGINX grpc proxy, first without SSL (works fine), then with SSL (same error as
above).

Any ideas what else to check and what can be wrong? Did anyone successfully configured dgraph-js to work with TLS?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/questionSomething requiring a response.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions