DB2ConnectionStringBuilder.TLSVersion property
Gets or sets the value representing the specific version of the Transport Layer Security (TLS) protocol to be used for a TLS connection.
- Namespace:
IBM.Data.DB2
- Assembly:
IBM.Data.DB2
(inIBM.Data.DB2.dll
)
Syntax
[Visual Basic]
Public Property TLSVersion As String
[C#]
public string TLSVersion {get; set;}
[C++]
public: __property String* TLSVersion ();
public: __property void TLSVersion(String*);
[JScript]
public function get TLSVersion (): String;
public function set TLSVersion(String);
Property value
A string that represents the TLS
protocol version TLSV1, TLSV12 or TLSV13 to be used for a TLS connection. The specific version of
the TLS protocol (that is TLSv1.0/TLSv1.1, TLSv1.2 and TLSv1.3) can be set through the
TLSversion
property using the TLSV1, TLSV12 and TLSV13 value respectively. If the
TLSVersion
property is set to any value other than TLSV1, TLSV12 or TLSV13, then
the driver throws an error and connection does not happen. Note:
- TLS 1.3 support (TLSV13) is available in Db2® 11.5.8 and later.
- In Db2
11.5.8
and later, the client does not support SHA-224 certificates in the default configuration. To
re-enable support for SHA-224 certificates, the
TLSVersion
property must be set to TLSV12 or TLSV1.