# JDBC connection error indicating SSL issue

**URL:** <https://community.smartbear.com/t/jdbc-connection-error-indicating-ssl-issue/69>\
**Category:** ReadyAPI\
**Tags:** readyapi, api, migrated, function-tests, test-setup, configuration, automation-environments, data-driven-testing\
**Created:** [October 11, 2023, 12:35pm UTC](https://community.smartbear.com/t/jdbc-connection-error-indicating-ssl-issue/69 "2023-10-11T12:35:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 11, 2023, 12:35pm UTC](https://community.smartbear.com/t/jdbc-connection-error-indicating-ssl-issue/69/1 "2023-10-11T12:35:10Z")

</div>

> Originally posted by **arasi\_m** on October 11, 2023

I have configured a MS SQL DB in my data source step. If i test it , the connection is successful. But while running the data source step alone, i am facing the following error: I have copied the latest MS SQL JDBC Drivers(12.4.1 and 12.4.0) into the ReadyAPI bin path. Kindly help me to resolve the same.

_**Cannot get a connection for the specified properties com.microsoft.sqlserver.jdbc.SQLServerException: “encrypt” property is set to “true” and “trustServerCertificate” property is set to “false” but 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 requested target. ClientConnectionId:6f0f5b46-4e69-446f-80ee-866d05e2b8e2**_

I have added the following properties “encrypt” as false and “trustServerCertificate” as true in the database configuration.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 11, 2023, 1:10pm UTC](https://community.smartbear.com/t/jdbc-connection-error-indicating-ssl-issue/69/2 "2023-10-11T13:10:50Z")

</div>

> Originally posted by **groovyguy** on October 11, 2023

The connection test only verifies that you have connectivity available to the SQL server. In this instance, it looks like your database requires an SSL connection, and you will have to adjust your connection string for your JDBC drivers accordingly. You might find some useful information [here.](https://learn.microsoft.com/en-us/sql/connect/jdbc/connecting-with-ssl-encryption?view=sql-server-ver16)

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 12, 2023, 4:01am UTC](https://community.smartbear.com/t/jdbc-connection-error-indicating-ssl-issue/69/3 "2023-10-12T04:01:07Z")

</div>

> Originally posted by **arasi\_m** on October 11, 2023

Thank you. Link was useful. My problem got resolved.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 7, 2026, 5:11pm UTC](https://community.smartbear.com/t/jdbc-connection-error-indicating-ssl-issue/69/4 "2026-10-07T17:11:47Z")

</div>

Closed on October 7, 2026, 5:11pm UTC

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
