Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not establish trust relationship for the SSL/TLS secure channel #505

Closed
sebwerner opened this issue Apr 1, 2020 · 4 comments
Closed

Comments

@sebwerner
Copy link

I am getting the following error when opening the IIS extension in Server Manager:

Unknown error has occurred when trying to initialize Web Server Module: "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel."

@atomsmith
Copy link

For me, this error was caused by expiration of the self-signed certificates installed by the IIS.Administration component. Uninstalling and reinstalling this component created fresh certificates that are good for another two years. However, it looks like IIS.Administration is end-of-life. Does that mean this project is dead by extension?

@DumboJetEngine
Copy link

I have the same problem.
I have uninstalled and reinstalled "IIS Management Scripts and Tools" from the server roles, restarted, but nothing helped.
My localhost certificate is expired, and thus the certificate of https://server:55539/ .
I have also tried removing the certificate and that has completely broken the IIS Management API.
Any ideas are welcome.
How can I set the certificate manually to a specific certificate in the WebHosting store?

@yaqiyang
Copy link
Contributor

The "IIS Management Scripts and Tools" server role does not help. That is not the IIS Management tool used in WAC.

Can you access https://server:55539/ directly? If it works, the certificate is fine. If not,

@DumboJetEngine
Copy link

Originally, I could access https://server:55539/ , but I was getting a certificate error and I had to bypass this on the browser (which is expected). The expiration date on the certificate was on a past date.
But the IIS extension in WAC did not work at all, and I was getting the mentioned error.
Later, I removed a "localhost" certificate from the server the above API stopped working all together.

Thanks for your help.
I have managed to fix the problem now.
I have uninstalled "IIS Administration" from the "Installed Apps" addon/section in WAC (Windows Admin Center).
Uninstalling using the linked installer and an /uninstall flag did not work for some reason and it was leaving things behind that prevented a successful reinstall.
After that, installing fixed everything! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants