Support Questions

Find answers, ask questions, and share your expertise

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: