In a site I built recently, I only wanted the user to hit a particular page by way of a secured HTTPS connection. As I loaded the page, I used the SERVER_PORT variable to see if I was on the secured server, which has a port number of 443. If I was on port 80, I was on the non-secure server. A quick Response.Redirect sent the user to the correct web site. There are also a number of additional variables that provide information about the security on the server, such as the number of bits in the security key, the issuer, and so on. To see an example of the values, take a look at this URL:
<a href=”https://ssl.northcomp.com/variables.asp”>https://ssl.northcomp.com/variables.asp</a>
This page dumps out all the server variables on my secured server. Take note of the CERT_KEYSIZE, CERT_SECRETKEYSIZE, and other variables.