Code Access Security and Authenticode
From: Chris B (ChrisB_at_discussions.microsoft.com)
Date: 06/18/05
- Next message: Paul: "Re: Authentication? Forms without Anynymous access"
- Previous message: Scott Gauthier: "CAS and Office Development."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 17 Jun 2005 15:17:03 -0700
I have and .NET application that has approx 40 assemblies. I use signcode
and a VeriSign digital certificate to sign all the assemblies. I deploy the
application as a SmartClient - i.e. all the assemblies are on a server. A
client machine with the .NET framework runs the main assembly.
Of course, this is the point where Code Access Security comes in. My
application requires special Code Access Security on the client's machine.
So if the client has not done so once, she must run a CAS installer program
that I wrote to set the appropriate .NET Code Access Security. The installer
basically does the following:
1. Creates a new Machine level Code Group
2. Makes the membership condition "Publisher" and uses the digital signature
my assemblies.
3. Assign appropriate permissions if the membership conditions are met.
So far so good. Everything works.
However...
The digital certificate for some reason expires after one year. When the
certificate expires will signcode.exe not let me sign assembies with it? If
signcode does let me sign with an expired certificate, then will CAS still
honor the digital certificate?
I'm asking because it would be a major pain to require my users every year
to re-setup their client-side CAS. As far a Versign has confirmed to me,
when I renew the certificate, I will get an entirely new private and public
key.
I know I can setup the CAS with the strong-names of each of my assemblies,
but I think it would be less elegant to setup 40 CAS Code Groups for this.
The digital signature seems to be the most elegant way (and has been),
except for this one terribly annoying expiration date.
Any guidance or suggestions to solve my problem welcome.
TIA
- Next message: Paul: "Re: Authentication? Forms without Anynymous access"
- Previous message: Scott Gauthier: "CAS and Office Development."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|