# SSL Connection Error with SQL Database

**URL:** <https://discuss.elastic.co/t/ssl-connection-error-with-sql-database/234253>\
**Category:** Logstash\
**Created:** [May 26, 2020, 6:51am UTC](https://discuss.elastic.co/t/ssl-connection-error-with-sql-database/234253 "2020-05-26T06:51:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikramnr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikramnr/32/66065_2.png) [@vikramnr](https://discuss.elastic.co/u/vikramnr)\
**Post date:** [May 26, 2020, 6:51am UTC](https://discuss.elastic.co/t/ssl-connection-error-with-sql-database/234253/1 "2020-05-26T06:51:06Z")

</div>

I just want to run logstash with using JDBC plugin but I'm unable to connect to the server. Below is error that I receive. I tried some ways suggested in [github](https://github.com/Microsoft/mssql-jdbc/issues/879) but my problem isn't being solved.

Please let me know if you have faced such issues before and hopefully some pointer to fix this as well 🙂

```auto
Unable to connect to database. Tried 1 times
{:error_message=>"Java::ComMicrosoftSqlserverJdbc::SQLServerException: The driver could not
establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error:
\"Unexpected rethrowing\"."}

```

Specs

```auto
mssql-jdbc-7.4.1.jre11.jar
java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.231-b11, mixed mode)

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 23, 2020, 6:51am UTC](https://discuss.elastic.co/t/ssl-connection-error-with-sql-database/234253/2 "2020-06-23T06:51:08Z")

</div>

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