TMG 2010 SP1: Cannot publish a website through TMG server when using any port except port 80
Introduction
Cannot create a weblistener using any port other then 80 for non-ssl website publishing or trying to modify WebListener settings via UI for non-ssl website publishing. For example trying to use port 8080 on the listener as the port number in front of non-ssl connection option it gives an error:
Repro steps
- Create a weblistener for non ssl connection
- In weblistener properties, click on connection tab and change the port to 8080
- Will receive an error: “web listener is configured to use SSL, you must specify a certificate" .
Workaround:
Run the script:
========================================
ListnerName= WScript.Arguments.Named("Listener")
ListnerPort= WScript.Arguments.Named("Port")
set curArray = CreateObject("FPC.Root").GetContainingArray()
set listener = curArray.RuleElements.WebListeners.Item(ListnerName)
listener.Properties.TCPPort = ListnerPort
listener.Save
=========================================
- Save it as SetListenerPort.vbs
- Run it from elevated command prompt
- SetListenerPort.vbs /Listener:<ListenerName> /Port:<PortNumber>
- Where <ListernerName> and <PortNumber> should be substituted to the actual parameters.
- Close and open tmg console. The port should be changed.
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products
Author
Masoud Hoghooghi
Escalation Engineer
Microsoft CSS Forefront Security Edge Team
Technical Reviewer
Brennan Crowe
Support Escalation Engineer
Microsoft CSS Forefront Security Edge Team