FireDAC.Phys.MongoDBWrapper.TMongoConnection.SSLInit
Delphi
procedure SSLInit(const APEMFile, APEMPwd, ACAFile, ACADir, ACRLFile: String;
AWeakValid, AInvHostsValid: 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, bool AInvHostsValid);
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:
APEMFileis the path to your .pem file, which contains your private key and certificate chain.APEMPwdis 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.ACAFileis 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.ACADiris 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.ACRLFileis the path to a certificate revocation list file.AWeakValiddetermines whether the underlying library should perform certificate verification on the certificate that the MongoDB server returns (False) or not (True).