| title | getTrustServerCertificate Method (SQLServerDataSource) | Microsoft Docs | |
|---|---|---|
| ms.custom | ||
| ms.date | 01/19/2017 | |
| ms.prod | sql | |
| ms.prod_service | connectivity | |
| ms.reviewer | ||
| ms.technology | connectivity | |
| ms.topic | conceptual | |
| apiname |
|
|
| apilocation |
|
|
| apitype | Assembly | |
| ms.assetid | e4f443cc-b5d7-4859-81df-836a8642ed07 | |
| author | David-Engel | |
| ms.author | v-daenge |
[!INCLUDEDriver_JDBC_Download]
Returns a Boolean value that indicates if the trustServerCertificate property is enabled.
public boolean getTrustServerCertificate()
true if trustServerCertificate is enabled. Otherwise, false.
If the trustServerCertificate property is set to true, the [!INCLUDEssNoVersion] Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), certificate is automatically trusted when the communication layer is encrypted using TLS. In other words, the [!INCLUDEjdbcNoVersion] will not validate the [!INCLUDEssNoVersion] TLS/SSL certificate. The default value is false.
If the trustServerCertificate property is set to false, the [!INCLUDEjdbcNoVersion] will validate the server TLS/SSL certificate.