Re: Require SSL certificate
From: Paul Glavich [MVP ASP.NET] (glav_at_aspalliane.com-NOSPAM)
Date: 05/02/05
- Next message: Nicole Calinoiu: "Re: EventLogPermission via caspol.exe"
- Previous message: Martin: "Require SSL certificate"
- In reply to: Martin: "Require SSL certificate"
- Next in thread: Martin: "Re: Require SSL certificate"
- Reply: Martin: "Re: Require SSL certificate"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 2 May 2005 22:58:08 +1000
In your code you can use:-
bool IsUsingSSL;
IsUsingSSL = Request.IsSecureConnection;
This will be true if running under SSL.
Once a web cert is associated with a site, it doesn't need to be installed
into the clients machines, it simply needs to descend from a valid
certification authority root cert. The fact you have requested a cert and
installed it via that request associates it with your site. In the browser,
you can click on the padlock and verify its using your requested
certificate.
-- - Paul Glavich ASP.NET MVP ASPInsider (www.aspinsiders.com) "Martin" <martin_no_spam@martinz.co.nz> wrote in message news:e12$NvuTFHA.3544@TK2MSFTNGP12.phx.gbl... > Hi, > > i am hoping to get some advice on the best way to achieve the following. > > I have a website and a security certificate, i install the security > certificate for the site. > from that point on I want to ensure that all visitors to the site are > 1. coming over Https > 2. have my SSL certificate installed. > > I guess that i can examine the server variables collection to ensure that > they are coming over https, however I am unsure of how to determine if they > have my ssl cerificate installed. > > any help or pointers to articles of interest is appreciated. > > cheers > > martin. > > >
- Next message: Nicole Calinoiu: "Re: EventLogPermission via caspol.exe"
- Previous message: Martin: "Require SSL certificate"
- In reply to: Martin: "Require SSL certificate"
- Next in thread: Martin: "Re: Require SSL certificate"
- Reply: Martin: "Re: Require SSL certificate"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|