AuthenticateServer fails using LetsEncrypt cert

My domain is: photozync.is-a-geek.com

I executed the c# code: stream.AuthenticateAsServer(Service.HTTPSCertificate);

using the pfx file to load the LetsEncrypt certificate to Service.HTTPSCertificate

It produced this output:

A call to SSPI failed, see inner exception.
The Local Security Authority cannot be contacted

My web server is (include version): Home grown

The operating system my web server runs on is (include version): Windws 10 1903

I can login to a root shell on my machine (yes or no, or I don’t know): yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no

If I create a self signed certificate and load it into Service.HTTPSCertificate it works as expected.

Hi @bobzscharnagk,

Welcome to the community forum!

Up front I admit my Windows skills have atrophied, but what sort of information have you been able to pull out of the search engines for those errors?

Doc for SSLStream: https://docs.microsoft.com/en-us/dotnet/api/system.net.security.sslstream?view=netframework-4.8

Relates to the output above: https://social.msdn.microsoft.com/Forums/vstudio/en-US/c4406126-d189-4a85-81ea-4570d276c401/a-call-to-sspi-failed-see-inner-exception-the-local-security-authority-cannot-be-contacted?forum=wcf

This might be applicable: Programmatical Approach of using Lets Encrypt SSL Certificate from Microsoft .Net Application coding for API connections

1 Like

Phil,

I’ve done quite a bit of Googling but as yet have found no solution.

Bob

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.