Encryption Method
- Last Updated: July 30, 2025
- 1 minute read
- DataDirect Connectors
- ODBC
- MongoDB 8.0
- Documentation
Attribute
EncryptionMethod (em)
Purpose
Determines whether data is encrypted and decrypted when transmitted over the network between the driver and database server.
Valid Values
0 | 1
Behavior
If set to 0 (NoEncryption), data is not encrypted or decrypted.
If set to 1 (SSL), data is encrypted using SSL. If the database server does not support
SSL, the connection fails and the driver throws an exception.
Notes
When SSL is enabled, the following options also apply:
- CryptoProtocolVersion (CryptoProtocolVersion)
- Host Name In Certificate (HostNameInCertificate)
- Key Password (KeyPassword), for SSL client authentication
- Key Store (KeyStore), for SSL client authentication
- Key Store Password (KeyStorePassword), for SSL client authentication
- Trust Store (TrustStore)
- Trust Store Password (TrustStorePassword)
- Validate Server Certificate (ValidateServerCertificate)
Default Value
0 (NoEncryption)