Team Exasol
Team Exasol

Table of Contents


This article will describe how to resolve the issue when you are using version 7.1 of the Exasol driver and your existing connections no longer work. This article is relevant for driver version 7.1.0+ and database versions 7.1.0+, 7.0.10+, and 6.2.15+. Other database and driver combinations are not affected.

Show more
Here is the original changelog documentation: EXASOL-2936 


When connecting to your database, you will get an error message similar to this: : 

java.io.IOException: TLS connection to host ( failed: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target. If you trust the server, connect to it using the fingerprint: 2747B64E34414C293091FF37F428CC8D795B64B7159E50EDD7EA507B58D4FAEA.


With the release of 7.1.0, we made a big change in our drivers: JDBC, ODBC and ADO.NET are now using TLS by default to connect to the database versions 7.1.0+, 7.0.10+, and 6.2.15+. For security reasons, the drivers will only establish a connection to the database if the SSL/TLS certificate of the database can be verified. If the certificate used by the database is not signed by a publicly recognized certificate authority (CA) or if the necessary CA certificate has not been provided to the client to use for verification, the connection will fail. In these cases you will get an exception like:

TLS connection to host (exadb1.example.com) failed: unable to get local issuer certificate. If you trust the server, connect to it using the fingerprint: 2747B64E34414C293091FF37F428CC8D795B64B7159E50EDD7EA507B58D4FAEA.

If another certificate has not been uploaded using EXAoperation, a self-signed certificate is used by Exasol per default. Since this certificate is self-signed, TLS connections to Exasol will fail by default.

For an in-depth explanation of this change, see EXASOL-2936 


Immediate Mitigation

To re-establish connection to your database using the latest driver, there are 2 short-term solutions:

Option 1. Use the fingerprint (mid-level secure)

The error message provides you a fingerprint that you can append to your hostname when connecting to the database. The fingerprint looks like: 2747B64E34414C293091FF37F428CC8D795B64B7159E50EDD7EA507B58D4FAEA. You can also see this fingerprint in Exaoperation:


In your client or driver, change the server or host field to follow this format: <ip address>/<fingerprint>:8563

For example:

The below screenshots show what the connect box should look like in DbVisualizer and DBeaver. 

DbVisualizer exampleDbVisualizer exampleDBeaver exampleDBeaver example

Option 2. Deactivate the certificate check using a driver parameter (least secure)

The TLS Certificate check can be disabled using the following driver parameters. Note: this is the least secure method

  • JDBC: validateservercertificate=0

A JDBC connection string would now look like this: jdbc:exa:exadb1.example.com:8563;validateservercertificate=0

If you are connecting using a tool, it may not be possible to change the driver parameters very easily. For information on this, see the documentation of your tool. 

Long-term solution (most-secure)

In the long-term, the most secure solution is to use a certificate that is signed by a publicly recognized CA. This certificate can be uploaded to Exaoperation as described in our documentation. The necessary certificate must also be provided to the client. 


Additional References

We're happy to get your experiences and feedback on this article below!