wodSmtpServer ActiveX Control - Certificate Property
      
 

Description

Holds private certificate/private key information.


Property type

An Object object.  


Syntax

[Set] object.Certificate [= Object]



The Certificate Property syntax has these parts:

Part Description
object An expression evaluating to an object of type wodSmtpServer.
Object An Object object.

Remarks

Certificate property must be set when wodSmtpServer is used in secure mode - with Security setting other than SecurityNone. In those cases you need private key and a certificate, so you use to decrypt data coming from the client. Certificate property will hold this key from you, either from wodCertificate object.

You can load both certificate (shown to the client) and the private key (for decrypting data). You can try using it this way:

Dim cert As Certificate
Set cert = new Certificate
cert.Load "mycertificate.cer"
cert.LoadKey "myprivkey.txt", mypassword
Set FtpD.Certificate = cert

If you don't specify this property for secure SMTP server and try to start the server, an error will be generated.