-
Notifications
You must be signed in to change notification settings - Fork 63
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
dgraph4j and TLS - Unable to get demo working #142
Comments
Does the server certificate hostname match the server's hostname (i.e., |
@danielmai it does yes- even if I comment out the cert piece, the same error is thrown. Should the draph4j lib pull in all dependencies it requires? |
What platform and Java version are you using? Is this with the latest JDK (Java 14)? Looks like your setup doesn't have any of the ALPN providers. You need at least one to handle the TLS connections with gRPC. See gprc-java's SECURITY.md page for more info on the TLS setup. |
That was it - I was using Java 8. The documentation references to use Java 1.8.x for any versions of Dgraph4j greater than version 1.1.0. Many thanks for your help on this issue |
Quoting [gRPC documentation](https://github.com/grpc/grpc-java/blob/master/SECURITY.md#tls-on-non-android) for TLS on non-Android platforms: > JDK versions prior to Java 9 do not support ALPN and are either missing AES GCM support or have 2% the performance of OpenSSL. Fixes #142. Fixes #CLIENTS-105.
Hi
I am trying to setup dgraph4j to use TLS.
I have developed a simple maven java project to test this out
My pom contents are simple and are as follows
Here is my code
When I run the main method - I get the following stacktrace
Is there anything else I need to do? I have been following the dgraph4j documentation
Thanks
Damien
The text was updated successfully, but these errors were encountered: