Connect to a Microsoft SQL database over SSL
If you are connecting Transact to a Microsoft SQL database over an SSL connection, follow these steps.
- Stop Transact.
- Download the jtds-1.3.1.zip file from the Customer Support portal.
- Extract the contents of the jtds-1.3.1.zip file to a temporary location.
- Go to <Transact_Folder>\JavaAppServer\lib.
- Backup and delete existing jtds-*.jar files.
- Copy the extracted jtds-1.3.1.jar to the lib folder.
-
Open
EphesoftTransact.exe as an administrator.
This executable is located at <Transact_Folder>\JavaAppServer\bin.
- Select the Java tab.
-
Add the following parameter to the
Java Options field:
Djsse.enableCBCProtection=false
- Go to <Transact_Folder>\Application\WEB-INF\lib.
- Repeat steps 5–6.
- Back up the existing server.xml file, which is located at <Transact_Folder>\JavaAppServer\conf.
- Open server.xml with an editor.
-
Update the following connection string by adding
"ssl=require".
jdbcUrl="jdbc:jtds:sqlserver://localhost:1433;databaseName=ephesoft;sendStringParametersAsUnicode=true;prepareSQL=3;ssl=require;"
-
Import the certificate into the Java keystore.
Ensure the database is configured properly for encryption. Refer to the following Microsoft support article: How to Enable SSL Encryption for an Instance of SQL Server by Using Microsoft Management Console.