Re: Loading Multiple Certificates - WeOnlyDo Discussion board

Re: Loading Multiple Certificates (General questions)

by Jeremy, Thursday, December 04, 2014, 10:07 (3640 days ago) @ Jasmine

Yes. It will work if the certificates are registered with Windows.

But sometimes, we want to deploy the certificates file with software and do not want to register the certificates, using cert.Import method is the best solution.

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


Complete thread: