Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

nifi The driver could not establish a secure connection to sql server by using secure sockets layer

avatar
Explorer

vkotsas_0-1655194046990.png

Hi  do you have any ide what  how i solve the above error

4 REPLIES 4

avatar
Master Collaborator

How you are passing SSL details in DBCPConnectionPool used by ConvertJSONToSQL?  in configured JDBC URL?

avatar
Explorer

yes my jdbc is the below

jdbc:sqlserver://uxxxxx:1433;encrypt=true;trustServerCertificate=true;database=xxx;

avatar
Master Collaborator

I per MS SQL docs I found this  example String connectionUrl =
"jdbc:sqlserver://localhost:1433;" +
"databaseName=AdventureWorks;integratedSecurity=true;" +
"encrypt=true; trustServerCertificate=false;" +
"trustStore=storeName;trustStorePassword=storePassword";  Can you please check ? also the URL which you have used works outside of nifi ?

avatar
Community Manager

@vkotsas, Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. 



Regards,

Vidya Sargur,
Community Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community: