Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.85 KB

settrustservercertificate-method-sqlserverdatasource.md

File metadata and controls

40 lines (29 loc) · 1.85 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic apilocation apiname apitype
setTrustServerCertificate Method (SQLServerDataSource)
setTrustServerCertificate Method (SQLServerDataSource)
David-Engel
davidengel
01/19/2017
sql
connectivity
reference
setTrustServerCertificate Method (SQLServerDataSource)
setTrustServerCertificate Method (SQLServerDataSource)
Assembly

setTrustServerCertificate Method (SQLServerDataSource)

[!INCLUDEDriver_JDBC_Download]

Sets a Boolean value that indicates if the trustServerCertificate property is enabled.

Syntax

  
public void setTrustServerCertificate(boolean trustServerCertificate)  

Parameters

trustServerCertificate

true if the server Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), certificate should be automatically trusted when the communication layer is encrypted using TLS. Otherwise, false.

Remarks

If the trustServerCertificate property is set to true, the [!INCLUDEssNoVersion] TLS/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.

See Also

SQLServerDataSource Members
SQLServerDataSource Class