Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,502
Community Members
 
Community Events
165
Community Groups

SQL Server question

I have three products (Jira, Confluence, Crowd) all point to the same physical server, but each with their own database.

Jira and Confluence can connect to their respective databases with no issues.

Crowd does not. I am trying to figure out why, and in the course of looking at the three installations I see that Jira and Confluence use these properties:

com.microsoft.sqlserver.jdbc.SQLServerDriver

com.atlassian.confluence.impl.hibernate.dialect.SQLServerDialect

jdbc:sqlserver://*********:1433;databaseName=*****

and Crowd uses these properties:

net.sourceforge.jtds.jdbc.Driver

jdbc:jtds:sqlserver://*******:1433/*****

org.hibernate.dialect.SQLServerDialect

Which produces the following error on the SQL Server

Encryption is required to connect to this server but the client library does not support encryption; the connection has been closed. Please upgrade your client library.

The DBA has assured me that encryption IS NOT required. However, when I update the properties in Crowd to the same values as Jira and Confluence (and copy the library file), I got the following error

Could not connect to the database: com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to ... (More details about the error can be found in the logs).

So I'm stuck. I would really appreciate any ideas at all. Even crazy ones.

 

2 answers

1 accepted

2 votes
Answer accepted

The answer was to use the JRE 8 MSSQL Library, even though the Java version is JRE 11.

Not having access to the MSSQL Source code, I can only surmise that version 11 defaults to encryption, while version 8 does not.

Hi @Robert Egan 
I checked your case with SQL Server 2017 (without Encryption) and Crowd 4.4.1 (with default jTds driver v.1.3.1) and all works pretty fine (please see attachments)... I used AWS RDS and EC2 for that. Additionally I connected to DB through the DataGrip client with jTds driver. As recommendations:

- check that DB encryption is disabled

- to be know, that Atlassian applications deployed in different Tomcat containers. https://confluence.atlassian.com/confkb/can-multiple-atlassian-products-be-deployed-in-a-single-tomcat-container-21SQLserver6.png8279174.html
SQLserver5.png
SQLserver1.jpg

The DBA has assured me that he has disabled anything that might be even remotely connected to encryption. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
4.4.1
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

197 views 1 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you