SSL Sample - WeOnlyDo Discussion board

SSL Sample (wodWebServer / wodWebServer.NET)

by Jeremy, Wednesday, May 21, 2014, 11:32 (3839 days ago)

Would you please provide an SSL sample which load certificate from localmachine store.

In most cases, the server certificates are installed in the certificate store but not in file system.

SSL Sample

by wodSupport, Wednesday, May 21, 2014, 16:29 (3839 days ago) @ Jeremy

Jeremy,

hi. Do you need sample for ActiveX or NET version of wodWebServer?

Kreso

SSL Sample

by Jeremy, Thursday, May 22, 2014, 00:05 (3839 days ago) @ wodSupport

.net version.
Thanks

SSL Sample

by wodSupport, Thursday, May 22, 2014, 14:14 (3838 days ago) @ Jeremy

Jeremy,

in NET it is very easy, you can do something like this:

X509Store store = new X509Store("My");
store.Open(OpenFlags.ReadOnly);
web1.Certificate = store.Certificates[0];

where Certificates[0] is your certificate, and 'My' is store you need.

Regards,
Kreso

SSL Sample

by Traveller, Thursday, May 22, 2014, 20:27 (3838 days ago) @ wodSupport

Hi Kreso,

please give an example for active x Component Vb6 too.
Thanks

SSL Sample

by wodSupport, Thursday, May 22, 2014, 20:28 (3838 days ago) @ Traveller

Hi.

Sample for ActiveX is available with all SSL related components, under

Samples\Certificate Management\VB\1. Enum Installed Certificates

you will see how to access specific certificate and pass it to the component.