skip to main content
Using the ADO.NET Client : Specifying Connection Options : EncryptionMethod
 

EncryptionMethod

Property

EncryptionMethod
Description
Defines how the data provider encrypts data sent between the data provider and the data source.

Valid Values

NoEncryption | SSL
If set to NoEncryption, data sent between the data provider and the database server is not encrypted.
If set to SSL, all data sent between the data provider and the server is encrypted with SSL. The data provider checks the value of the Validate Server Certificate connection string option to perform the necessary server authentication if required. The OpenAccess SDK server must be started with ServiceSSLEnabled=True. This attribute must be set to SSL when connecting to an OpenAccess SDK service enabled for SSL.
When an OpenAccess SDK 8.1 client connects with EncryptionMethod=SSL to an OpenAccess SDK 8.1.0 server, the client does not read the DataSourceSSLDataEncryption service attribute. The whole session will be SSL encrypted.
For more information about using the ServiceSSLEnabled service attribute, refer to OpenAccess SDK Administrator’s Guide.
When SSL is enabled, the following connection string options also apply:
Host Name In Certificate
Validate Server Certificate
Note: An exception is thrown if the data provider attempts to connect with an invalid encryption method, for example, using SSL when connecting with a server that does not support SSL.
Note: Because the database server does not authenticate the user when client authentication is used, use this method of authentication if you can guarantee that only trusted clients can access the database server.
Note: When an OpenAccess SDK 8.1 client connects with EncryptionMethod=SSL to an OpenAccess SDK 8.1.0 server and the DataSourceSSLDataEncryption service attribute is set to 0, only the logon handshake is encrypted. If DataSourceSSLDataEncryption service attribute is set to 1, the whole session is SSL encrypted.

Default

NoEncryption