Moved from GitHub dgraph-js/50
Posted by 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?