Skip to main content
Solved

Modifying SQL Server Connection String

  • October 20, 2017
  • 3 replies
  • 158 views

When attempting to create a writer for an Azure SQL database, I'm getting the following error:

com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "java.security.cert.CertificateException: Failed to validate the server name in a certificate during Secure Sockets Layer (SSL) initialization.". ClientConnectionId:94d4ffe6-d46d-4b02-8a9a-055ac0e021e8

There appears to be an issue with the certificate chain Microsoft is using to enable secure connections to SQL databases. I was able to work around this issue in another tool by setting trustServerCertificate=True on the connection string. The FME Workbench UI does not allow me to customize the connection string. Is there another way to set this parameter for database connections?

Best answer by bwilson

@oscard - In the interim between my original post and your reply I was able to resolve the original certificate issue with the Azure support team that necessitated my customizing the connection string. I unfortunately no longer have a suitable database that would let me test your suggestion, so I'm not able to confirm it would work. However, I believe it would given I used this very same solution in a different tool.

Thank you for taking the time to respond!

View original
Did this help you find an answer to your question?

3 replies

oscard
Influencer
Forum|alt.badge.img+21
  • Influencer
  • January 16, 2018

Have you tried the Writer JDBC?

It has a parameter for the connection string. Maybe it allows you to concatenate there the "trustServerCertificate=True" option.


  • Author
  • Best Answer
  • January 22, 2018

@oscard - In the interim between my original post and your reply I was able to resolve the original certificate issue with the Azure support team that necessitated my customizing the connection string. I unfortunately no longer have a suitable database that would let me test your suggestion, so I'm not able to confirm it would work. However, I believe it would given I used this very same solution in a different tool.

Thank you for taking the time to respond!


oscard
Influencer
Forum|alt.badge.img+21
  • Influencer
  • January 23, 2018
bwilson wrote:

@oscard - In the interim between my original post and your reply I was able to resolve the original certificate issue with the Azure support team that necessitated my customizing the connection string. I unfortunately no longer have a suitable database that would let me test your suggestion, so I'm not able to confirm it would work. However, I believe it would given I used this very same solution in a different tool.

Thank you for taking the time to respond!

I now realize that your question was an "old" one.

 

I'm glad you could resolve your issue :)

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings