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

Explorer

vkotsas_0-1655194046990.png

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

4 REPLIES 4

Rising Star

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

Explorer

yes my jdbc is the below

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

Rising Star

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 ?

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:
Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.