AuthenticateServer fails using LetsEncrypt cert

My domain is:

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:

Relates to the output above:

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

1 Like


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


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