FireDAC.Phys.MongoDBWrapper.TMongoConnection.SSLInit

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SSLInit(const APEMFile, APEMPwd, ACAFile, ACADir, ACRLFile: String;  AWeakValid: Boolean);

C++

void __fastcall SSLInit(const System::UnicodeString APEMFile, const System::UnicodeString APEMPwd, const System::UnicodeString ACAFile, const System::UnicodeString ACADir, const System::UnicodeString ACRLFile, bool AWeakValid);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FireDAC.Phys.MongoDBWrapper.pas
FireDAC.Phys.MongoDBWrapper.hpp
FireDAC.Phys.MongoDBWrapper TMongoConnection

Description

Configures the SSL options of this instance of TMongoConnection for secured communications with your MongoDB server.

SSLInit receives the following parameters:

  • APEMFile is the path to your .pem file, which contains your private key and certificate chain.
  • APEMPwd is the encryption password of the private key portion of your .pem file. Use an empty string if your private key does not require a password.
  • ACAFile is the path to the .pem file that contains the root certificate chain from the Certificate Authority that your client needs to authenticate the certificate file that the MongoDB server returns.
  • ACADir is the path to a folder as the one that the c_rehash tool generates. For more information, see SSL_CTX_load_verify_locations, OpenSSL Documentation.
  • ACRLFile is the path to a certificate revocation list file.
  • AWeakValid determines whether the underlying library should perform certificate verification on the certificate that the MongoDB server returns (False) or not (True).

See Also