title: Is there a way to determine what the SSL port is for a site from an ASP.NET application?
body: <p>I have an ASP.NET application. I want to redirect to the secure port for the site, but the site may not necessarily be using the default of 443. Is there some environment variable or API call I can make to determine the currently configured SSL port for a site?</p>
  
  <p>Thanks!</p>