Import Certificate Error (wodWebServer / wodWebServer.NET)
Hi there
wodWebServer.NET
SSL server example works fine with the provided certificate:
cert.Import(AppPath() + "\\certificate.pfx", "weonlydo", System.Security.Cryptography.X509Certificates.X509KeyStorageFlags.Exportable);
web1.Certificate = cert;
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
Complete thread:
- Import Certificate Error - Danny, 2022-12-20, 17:17
- Import Certificate Error - Jasmine, 2022-12-21, 21:23
- Import Certificate Error - Danny, 2022-12-22, 08:05
- Import Certificate Error - Jasmine, 2022-12-21, 21:23