I have an ASP.NET application working in HTTPS (SSL). This is working well in my local computer and Amazon AWS (production environment).
But when I host this application in office (for testing) some strange things happens.
I can see the HTTPS in browser and the lock sign.
Fiddler also shows that the output is encrypted and shows port 443.
But
HttpContext.Current.Request.IsSecureConnectionreturns falseAnd
HttpContext.Current.Request.Url.Schemereturns HTTP.
In the office we are using Juniper SSG firewall and TMG 2010 (Forefront Threat Management Gateway 2010). So server receives requests through Juniper and TMG 2010.