DB2ConnectionStringBuilder.SSLServerCertificate property
Specifies the fully qualified name of a self-signed server certificate or a certificate authority (CA) certificate.
- Namespace:
IBM.Data.DB2- Assembly:
IBM.Data.(inDB2IBM.Data.)DB2.dll
Syntax
[Visual Basic]
Public Property SSLServerCertificate As String
[C#]
public String SSLServerCertificate {get; set;}
[C++]
public: __property String* SSLServerCertificate();
public: __property void SSLServerCertificate(String*);
[JScript]
public function get SSLServerCertificate() : String;
public function set SSLServerCertificate(String); Property value
A fully qualified path of the certificate file and the certificate file name. Only one fully qualified certificate name can be specified. The fully qualified certificate name must be unique and it cannot already exist in the keystore database. You cannot specify any wildcard characters or symbols that are specific to an operating system in the SSLServerCertificate property value.
Remarks
The certificate that is specified for the SSLServerCertificate property is stored in the default keystore database unless you specified a keystore database with a key stash file or a keystore database password.
The
certificate can be either self-signed certificate from a server or
signed by a trusted certificate authority. The SSLServerCertificate property
can be set when all the following conditions are met:
- The SSL value is specified for the SecurityTransportMode IBM® data server driver configuration keyword or the Security property.
- The database server is using a self-signed certificate or CA certificate, which is not present in the existing keystore database.
- The database client product that is installed is the Db2 10.5.0.5 or later fix pack releases.