For Presto-JDBC driver, did Presot-JDBC driver support the system key-store/trust-store on Mac with Java11? #15374
Unanswered
suwei111333
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Presto team:
I spend some time working on make SSL connection works on Mac with system key-store/trust-store,
here is my sample code before do the SSL connection:
TrustManager[] trustManagers = new TrustManager[] { new CompositeX509TrustManager(keyStore) };
SSLContext sslContext = SSLContext.getInstance("TLS");
sslContext.init(null, trustManagers, null);
SSLContext.setDefault(sslContext);
but failed.
No matter I set the default SSLContext to which one, prestoDriver still create it own SSLContext with the Java owned trust-store.
need some help to make it work.
thanks.
wei
Beta Was this translation helpful? Give feedback.
All reactions