How to set SSL connection for SQL server with SQL for Confluence (Pro Edition)
This article provides step by step instructions on how to set SSL connection using SQL server database with SQL for Confluence (Pro Edition).
Instructions
- Log into Confluence as an administrator.
- Click the Cog menu  > Manage apps.
- Expand app, Bob Swift Atlassian Add-ons - SQL (Pro Edition).
- Click Configure to see the configuration page.
- Select the View and modify data source profiles tab.
- To create a data source profile, click the Add profile button.
Provide the following parameters along with other required details while creating a profile:
Connection String for MSSQL database:
jdbc:sqlserver://<hostname>:1433;databaseName=test;integratedSecurity=true
Need to append integratedSecurity=true option to the connection string as shown above, to set SSL connection for SQL server.Â
Driver class:
com.microsoft.sqlserver.jdbc.SQLServerDriver
Driver Jar location:
<Confluence-Installation-Directory>/Confluence/WEB-INF/lib/<mssql-jdbc-x.x.x.jar>
To download the required jar file, navigate to this URL:Â https://docs.microsoft.com/en-us/sql/connect/jdbc/download-microsoft-jdbc-driver-for-sql-server?view=sql-server-ver15Â and place the jar file in this location:Â <Confluence-Installation-Directory>/Confluence/WEB-INF/lib.
In general, Confluence provides the MSSQL JDBC jar and it is under <Confluence-Installation-Directory>/Confluence/WEB-INF/lib.
Click the Test connection button. Once the connection is successfully established, you see this message: Connection successful.
- Click Next and Save profile. Your SSL connection for SQL server is now set.