Skip to main content
vkotsas
Silver ⭐️⭐️
June 14, 2022
Question

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

vkotsas_0-1655194046990.png

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

4 replies

ckumar
Platinum ⭐️
Platinum ⭐️
June 14, 2022

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

Translate
vkotsas
vkotsasAuthor
Silver ⭐️⭐️
June 14, 2022

yes my jdbc is the below

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

Translate
ckumar
Platinum ⭐️
Platinum ⭐️
June 14, 2022

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 ?

Translate
VidyaSargur
Community Manager
Community Manager
June 17, 2022

@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. 

Translate
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.