Back to product page

Certificate property


Holds user's client certificate (if provided).

Type

ICertificate object

Syntax

  • Basic
object.Certificate [= value]
The Certificate(object,value) syntax has these parts:
objectAn expression evaluating to an object of type WebUser
valueICertificate object

Remarks

Certificate property must be set when wodWebServer is used in secure mode - with Secure property setting is other than ProtNoSSL. 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, or 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 Web1.Certificate = cert
 

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

Platforms

Windows