Certificate.LoadFromFile Method


Loads the certificate from .pfx file.

[Visual Basic 6.0]
Public Sub LoadFromFile( _
    PFXFile As String, _
    Password As String, _
    KeyLocation As Long _
)
[Visual C++]
public: HRESULT LoadFromFile(
     BSTR PFXFile,
     BSTR Password,
     Long KeyLocation
);

Parameters

PFXFile
A full name of *.pfx file.
Passowrd
The password of the *.pfx file.
KeyLocation
The private keys's storage location, it can be CRYPT_USER_KEYSET or CRYPT_MACHINE_KEYSET
[Visual Basic, VBScript]
Const CERT_SYSTEM_STORE_CURRENT_USER = 65536
Const CERT_SYSTEM_STORE_LOCAL_MACHINE = 131072 

Remarks

To learn more about email digital signature and encryption, please refer to Digital Signature and E-mail Encryption/Decryption section.
To sign and encrypt email content, please refer to EASendMail SMTP Component.

See Also

Mail.VerifySignature Method
Mail.Decrypt Method

Online Tutorials

Verify Digital Signature and Decrypt Email in VB6 - S/MIME
Verify Digital Signature and Decrypt Email in Delphi - S/MIME
Verify Digital Signature and Decrypt Email in VC++ - S/MIME