I have a TS Gateway running on windows server 2008 (machine is dedicated for TS Gateway role and all the necessary services ). For some reason, TS Gateway shuts down every 2 or 3 days and it restarts right away by itself --This occurs randomly. The problem is every time TS Gateway restarts, it does not assign the SSL certificate that I previously set (I have a valid certificate generated by COMODO and not the self generated certificate). Which means all the users of remoteApp or Remote desktop cannot login to the system because the TS Gateway is not configured with a certificate.
The same problem occur when I restart the sever machine manually, TS Gateway certificate is not selected!
Under the SSL Certificate Tab of the TS Gateway properties it shows the following message:
For TS Gateway to function correctly, you must select an existing SSL certificate of create a self signed certificate
Every time I have to select the certificate manually and TS Gateway starts to work normally and clients are able to connect.
In the TS log it shows :
Warning 400 7/30/2009 9:39:06 AM TerminalServices-Gateway (ts gateway shutting down)
Critical 102 7/30/2009 9:39:16 AM TerminalServices-Gateway (The Terminal Services Gateway service requires a valid Secure Sockets Layer (SSL) certificate to accept connections. Ensure that you have obtained a valid SSL certificate, and then bind (map) the certificate by using TS Gateway Manager. For more information, see "Obtain a certificate for the TS Gateway server" in the TS Gateway Help. The following error occurred: "259"
)
Information 101 7/30/2009 9:39:16 AM TerminalServices-Gateway (The TS Gateway service is shutting down. To diagnose possible causes for this problem, verify whether the following services are installed and started: (1) World Wide Web Publishing Service (2) Internet Authentication Service (IAS) (3) RPC/HTTP Load Balancing Service. Also, check Event Viewer for Network Policy Server (NPS) and IIS events that might indicate problems with NPS or IIS.)
I check all the sevices mentioned in this log and they seem to work fine.
Please help me what causes this Behavior.
Thank you