Platforms to show: All Mac Windows Linux Cross-Platform

Back to MongoSSLOptionsMBS class.

MongoSSLOptionsMBS.AllowInvalidCertificates as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MongoDB MBS MongoDB Plugin 23.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether to do weaker certificate validation.

Default is false to disallow.
(Read and Write property)

MongoSSLOptionsMBS.AllowInvalidHostnames as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MongoDB MBS MongoDB Plugin 23.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether to allow invalid host names.

This allows you to disable hostname validation to allow to continue if the hostname doesn't match the certificate.

Default is false to disallow.
(Read and Write property)

MongoSSLOptionsMBS.CertificateAuthorityDirectory as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MongoDB MBS MongoDB Plugin 23.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The native file path to the CA directory.

(Read and Write property)

MongoSSLOptionsMBS.CertificateAuthorityFile as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MongoDB MBS MongoDB Plugin 23.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The native file path for a CA file.
Example
const URL = "mongodb://localhost/"
Var uri As New MongoURIMBS(URL)

Var client As New MongoClientMBS(URI)

// we assign the options to point to the cacert.pem file
Var SSLOptions As New MongoSSLOptionsMBS
SSLOptions.CertificateAuthorityFile = "/Users/cs/cacert.pem"

client.SSLOptions = SSLOptions

Break

e.g. get such a file from CURL website:
https://curl.se/docs/caextract.html
(Read and Write property)

MongoSSLOptionsMBS.CertificateRevocationListFile as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MongoDB MBS MongoDB Plugin 23.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The native file path to the Certificate revocation list file.

(Read and Write property)

MongoSSLOptionsMBS.ClientCertificateKeyFile as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MongoDB MBS MongoDB Plugin 23.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The native path to the PEM file with the private key to use.

(Read and Write property)

MongoSSLOptionsMBS.ClientCertificateKeyPassword as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MongoDB MBS MongoDB Plugin 23.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The password for the PEM file with private key.

(Read and Write property)

The items on this page are in the following plugins: MBS MongoDB Plugin.


The biggest plugin in space...