Re: Require SSL certificate

From: Paul Glavich [MVP ASP.NET] (glav_at_aspalliane.com-NOSPAM)
Date: 05/02/05


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.
>
>
>


Relevant Pages

  • Re: Failure installing SSL certificate on SBS2003PremSP1 (incl. IS
    ... I decided to purchase a CA SSL key and replace the self cert on ... Basically I think the SBS web listener needs to be ... since both are working off the same certificate store. ...
    (microsoft.public.windows.server.sbs)
  • Re: 400 Bad Request Error
    ... Thanks for the reply,it does not look like the partner is using 2 different ... I have that cert imported into my trusted people certificate store for the ... I tried adding a client cert and without one and it is the same result.I do ... use a SSL connection on a different certificate. ...
    (microsoft.public.biztalk.server)
  • Heads Up: SSL defeated in IE and Konqueror
    ... SSL defeated in IE and Konqueror ... VeriSign SSL site certificate to forge any other VeriSign SSL site certificate, ... tricky site owner signs an intermediate cert with another valid cert, ...
    (comp.os.linux.security)
  • Re: Win Mobile 5 + SBS 2003 SP1 + Exchange SP1 Connection woes
    ... The problem is the same with or without SSL ticked. ... So the certificate copied over just fine and has been installed on both ... The directions for install state that I can use the cert from the ...
    (microsoft.public.windows.server.sbs)
  • Re: Certificate Services and Synching with Exchange
    ... Yes, installing the cert and self-signing worked, but only because ... Yes, I had to manually export and install it, but it was trivially ... You export the cert from the MMC to a .cer file. ... Will installing Certificate Services and self-signing a certificate ...
    (microsoft.public.pocketpc.activesync)