Skip to main content
vkotsas
Silver ⭐️⭐️
Jun 14, 2022 8:43 AM UTC
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 ⭐️
Jun 14, 2022 9:18 AM UTC

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

Translate
vkotsas
vkotsasAuthor
Silver ⭐️⭐️
Jun 14, 2022 9:22 AM UTC

yes my jdbc is the below

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

Translate
ckumar
Platinum ⭐️
Platinum ⭐️
Jun 14, 2022 12:15 PM UTC

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
Jun 17, 2022 7:32 AM UTC

@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 Madabhushi| Senior Community Manager | Was your question answered? Make sure to mark the answer as the Best Answer. If you find a reply useful, say thanks by clicking on the thumbs up button.