Back to product page

Certificate property


Holds certificate/private key information.

Type

Object

Syntax

  • C#
  • VB.NET
Object Certificate {get; set; };

Property Certificate As Object

Remarks

Certificate property must be set when wodWebServer.NET is used in secure mode - with Secure property set to True. 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.

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 System.Security.Cryptography.X509Certificates.X509Certificate2
wodWebD1 = new WeOnlyDo.Server.WebServer
cert.Import("certificate.pfx", "certificate_password", Security.Cryptography.X509Certificates.X509KeyStorageFlags.Exportable)
wodWebD1.Certificate = cert wodWebD1.Start()
 

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

Platforms

Windows