Wednesday, May 17, 2017

An error occurred while using SSL configuration for endpoint

The other day, one of my Exchange 2016 lab servers stopped working. Well, I say "stopped working" but most things seemed to be working except for the Exchange Management Shell where I would get the following error when opening it:
OWA and ECP were also not working: I would simply get a blank page after signing in...
In the event log, there were hundreds of 15021 event errors complaining about SSL configuration:
Log Name:      System
Source:        Microsoft-Windows-HttpEvent
Date:          17/05/2017 03:51:17
Event ID:      15021
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Description:   An error occurred while using SSL configuration for endpoint The error status code is contained within the returned data.
As you can imagine, problems with SSL connections can affect multiple Exchange components such as the shell, ECP and OWA in this case (and many others if I had checked I'm sure). These problems can be the result of certificates not installed or incorrectly installed, and should be deleted from the system and reinstalled with the appropriate information.
So, I checked the installed certificates on this server by running netsh http show sslcert:
Nothing suspicious at first sight, but then again, I can't remember the last time I ran this command so I wasn't exactly sure what to look for. Until I ran the same command on a healthy server and noticed that the certificates used for 443 and 444 were the same:
So I went back to the affected server, deleted the certificate assigned to by running netsh http delete sslcert ipport= and assigned the same certificate as the one used on port 443 by running netsh httpadd sslcert ipport= certhash="certificate_hash" appid="application id":
Restarted the server and everything was back to normal! :)


  1. Thanks for the awesome post! I had this exact issue and you saved me hours of work.

  2. Excellent and simple explanation! Helped me, twice :) Thank you!

    1. Glad to hear that Nuno, thanks! :)

  3. Thanks my friend! your post saved me

    1. Excellent, really glad to hear that! :) Thank you for letting me know!

  4. Me too. Many thanks :-) Steve.

  5. This was exactly what i needed - save a TON of time. Thank you!

  6. Thanks my friend! your post saved me

  7. Superb, solved my issue too! Great documentation.