# Exchange 2013 powershell errors out, and Exchange 2013 ECP doesn’t work correctly

After Exchange 2013 system is updated or after reboot ECP / OWA and other IIS pages appear blank. Also Powershell…

blog

22 Mar 2015 pl

![Exchange 2013 powershell errors out, and Exchange 2013 ECP  doesn’t work correctly](/wp-content/uploads/2016/02/MicrosoftExchange.png)

[Zobacz obrazy (3)](#pf-content-image-1-0)

After **Exchange 2013** system is updated or after reboot **ECP** / **OWA** and other **IIS** pages appear **blank**. Also Powershell is not able to open up, and event log is full of errors.

### ❗ Problem Description

**Exchange 2013 powershell** errors out, and **Exchange 2013 ECP** doesn't work correctly (users get a login screen then a **blank page**). Moreover there is an **EVENT** being logged in Administrative Events (**Event ID 15021**, Source **HttpEvent**):

> *An error occurred while using SSL configuration for endpoint 0.0.0.0:444. The error status code is contained within the returned data.*

**Error in PowerShell**:

> VERBOSE: Connecting to MAIL2. New-PSSession : [mail2] Connecting to remote server mail2 failed with the following error messa ge : [ClientAccessServer=MAIL2,BackEndServer=mail2,RequestId=fd9724cd-19fb-4842-b30d-c9c4b976119f,TimeStamp =2015-03-24 18:55:58] [FailureCategory=Cafe-SendFailure] For more information, see the about_Remote_Troubleshooting He lp topic. At line:1 char:1 + New-PSSession -ConnectionURI “$connectionUri” -ConfigurationName Microsoft CategoryInfo : OpenError: (System.Manageme….RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin gTransportException + FullyQualifiedErrorId : -2144108477,PSSessionOpenFailed

[!\[Event ID 15021\](/wp-content/uploads/2016/03/61e58b92782748c99cf1222274376c71.png)](/wp-content/uploads/2016/03/61e58b92782748c99cf1222274376c71.png)

**Cause**: This event is logged when an error occurred while using SSL configuration for socket address.The error status code is contained within the returned data.

[!\[Event_15021_1\](/wp-content/uploads/2015/03/Event_15021_1.png)](/wp-content/uploads/2015/03/Event_15021_1.png)[!\[Event_15021_2\](/wp-content/uploads/2015/03/Event_15021_2.png)](/wp-content/uploads/2015/03/Event_15021_2.png)

### 🔑 Solution

Solution to solve it is to replace the certificate for 0.0.0.0:444 with the correct one. For some reason one of the certificates is being used instead of the one that is being served on standard https port.

1. Click **Start**, point to **All Programs**, click **Accessories**, right-click **Command Prompt**, click**Run as administrator**, and then click **Continue**.
2. Type **netsh http show sslcert**, and then press ENTER to view the installed certificates.
3. This will show the certs. Make a copy of the output to safe place.
4. Under **IP:port 127.0.0.1:443** note the certificate **hash** and **application ID**.
5. Type **netsh http delete sslcert ipport=0.0.0.0:444** (do this command even if the port doesn't exists on the list), and then press ENTER to delete the incorrectly installed certificate.
6. **netsh http add sslcert ipport=0.0.0.0:444 certhash= appid=” ”**, and then press ENTER to reinstall the certificate.
7. Reboot server

That's it. After rebooting certificate should be in it's place and content from **Exchange** being served correctly.

## Powiązane projekty

Projekty powiązane z tagami, kategoriami i treścią tego wpisu.

[Wszystkie projekty](/projekty/)

Trwa dopasowywanie projektów...

[Powrót do bloga](/blog/)

## Powiązane wpisy

- [Check an API write after a PowerShell timeout](/blog/verify-uncertain-api-outcomes-powershell/)
- [Inspect and convert mixed Office archives with PSWriteOffice](/blog/inspect-and-convert-mixed-office-archives-pswriteoffice/)
- [Compose PDF reports and automate page workflows with PSWriteOffice](/blog/automate-pdf-reports-and-page-workflows-pswriteoffice/)

<!-- PowerForge markdown artifact sha256:CD722F2D60D5E39B000E0F3FEE8A3C74DD54D7D487D358CE1EEA8B1F75AD08CD -->
