Import Certificate Error (wodWebServer / wodWebServer.NET)

by Danny, (792 days ago)
edited by unknown, ,

Hi there
wodWebServer.NET

SSL server example works fine with the provided certificate:

[code]cert.Import(AppPath() + "\\certificate.pfx", "weonlydo", System.Security.Cryptography.X509Certificates.X509KeyStorageFlags.Exportable);
web1.Certificate = cert;[/code]

any other certificate (self signed o standard) fails importing Private key with a inner exception 'System.Security.Cryptography.CryptographicException',
so cert.PrivateKey is null and the server won't start.

I tried with using powershell cmdlet, import export from computer certificate store, CreateCertificate API c#, but without luck.

How did you generate the sample certificate?


Thanks
Danny

locked

Complete thread: