IWA Authentication Scheme returns refused to connect error

Document ID : KB000076800
Last Modified Date : 09/04/2018
Show Technical Document Details
Issue:
I'm running a Web Agent on IIS, when I try to reach the IWA Authentication
Scheme, I get the following error in the browser :

This site can’t be reached mymachine.mydomain.com refused to
connect. Try: Checking the connection Checking the proxy and the
firewall

The URL I'm trying to reach is 

 https://mymachine.mydomain.com/siteminderagent/ntlm/creds.ntc?CHALLENGE=&SMAGENTNAME=myagent&TARGET=-SM-https%3A%2F%2Fmymachine.mydomain.com%2Ftest

When I try this URL 

 http://mymachine.mydomain.com/siteminderagent/forms/login.fcc 

then I get the page. How can I fix this ?
Cause:
You get this issue because IIS isn't configure to handle SSL connection. 
Resolution:
To solve this issue, configure IIS to handle SSL connection. Here's a sample of such configuration for IIS7.

How to Set Up SSL on IIS 7
https://docs.microsoft.com/en-us/iis/manage/configuring-security/how-to-set-up-ssl-on-iis