JaapWesselius.com

Microsoft UC Specialist

SSL offloading with Powershell

When you’re using a (hardware) load balancer in combination with Exchange Server 2010 you might want to offload SSL from the Exchange servers to the load balancers. This way you get more options available for persistence in the load balancer.

Enabling SSL offloading in Exchange 2010 is not that difficult but it consists of several steps which can be prone to error if you have to configure this on multiple servers (which is most likely the case of course with a load balancer).

Enabling SSL offloading for Outlook Anywhere is just a matter of checking the Allow secure channel (SSL) offloading in the Exchange Management Console.

image

For other HTTPS services like OWA, ECP, ActiveSync etc. it is a bit more work. First you have to enable SSL offloading for OWA in the registry by creating a REG_DWORD named SSLOffload in the HKLM\System\CurrentControlSet\Services\MSExchange OWA key.

image

When done you have to open the IIS Manager and in all virtual directories for Exchange 2010 you have to select SSL Settings and uncheck the Require SSLoption.

image

You have to repeat this for all Exchange virtual directories (OWA, ECP, Autodiscover, EWS, Microsoft-Server-ActiveSync and OAB).

If you have multiple Exchange 2010 servers in your organization you’re better off using the Exchange Management Shell. Just use these commands:

Set-OutlookAnywhere –Identity "$($env:COMPUTERNAME)\RPC (Default Web Site)" -SSLOffloading $true

New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\MSExchange OWA' -Name SSLOffloaded -Value 1 -PropertyType DWORD

Import-Module webadministration

Set-WebConfigurationProperty -Filter //security/access -name sslflags -Value "None" -PSPath IIS:\
-Location "Default Web Site/OWA"

Set-WebConfigurationProperty -Filter //security/access -name sslflags -Value "None" -PSPath IIS:\
-Location "Default Web Site/ECP"

Set-WebConfigurationProperty -Filter //security/access -name sslflags -Value "None" -PSPath IIS:\
-Location "Default Web Site/OAB"

Set-WebConfigurationProperty -Filter //security/access -name sslflags -Value "None" -PSPath IIS:\
-Location "Default Web Site/EWS"

Set-WebConfigurationProperty -Filter //security/access -name sslflags -Value "None" -PSPath IIS:\
-Location "Default Web Site/Microsoft-Server-ActiveSync"

Set-WebConfigurationProperty -Filter //security/access -name sslflags -Value "None" -PSPath IIS:\
-Location "Default Web Site/Autodiscover"

iisreset /noforce

Note. these steps are valid for Exchange 2010 SP1 and SP2 only. In Exchange 2010 RTM some settings were set using web.config. Do not attempt editing the web.config in Exchange 2010 SP1 or SP2.


Follow me on Twitter: @Jaapwess

One Response to SSL offloading with Powershell

  1. Pingback: Load Balancing Exchange 2010 with F5 LTMJaapWesselius.com | JaapWesselius.com

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>