strong name util sn and partial signing

  • Thread starter Thread starter laimis
  • Start date Start date
L

laimis

Hey,

So I get the idea of signing the assembly as to prevent any tempering with
it (besides the added ability to install it into the GAC). I did a lit
exercise myself there I signed the app, compiled, disassembled it, changed
some IL, assembled it and tried to load it but got the loader exception. Now
partial signing allows to keep the private key in the seperate location from
public. But how can I load the assembly which has been just partially
signed? If I am a dev and I work on some assembly, I want to test it, but I
cannot because I cannot loaded? What do I do know? Everytime I need to test
I have to resign it?

thanks for any advice or suggestion or explanation,

Laimis
 
The strong name utility is a thing of many wonders

sn -Vr <assembly file name>

this turns on verification skipping which means the assembly loader will not attempt to verify the strong name. ALl it does in fact is set up a registry entry in a key which has an ACL only alloing admin write access.

Regards

Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<[email protected]>

Hey,

So I get the idea of signing the assembly as to prevent any tempering with
it (besides the added ability to install it into the GAC). I did a lit
exercise myself there I signed the app, compiled, disassembled it, changed
some IL, assembled it and tried to load it but got the loader exception. Now
partial signing allows to keep the private key in the seperate location from
public. But how can I load the assembly which has been just partially
signed? If I am a dev and I work on some assembly, I want to test it, but I
cannot because I cannot loaded? What do I do know? Everytime I need to test
I have to resign it?

thanks for any advice or suggestion or explanation,

Laimis



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.771 / Virus Database: 518 - Release Date: 28/09/2004



[microsoft.public.dotnet.languages.csharp]
 
Works like a charm!
Richard Blewett said:
The strong name utility is a thing of many wonders

sn -Vr <assembly file name>

this turns on verification skipping which means the assembly loader will
not attempt to verify the strong name. ALl it does in fact is set up a
registry entry in a key which has an ACL only alloing admin write access.
Regards

Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog
nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/ said:
Hey,

So I get the idea of signing the assembly as to prevent any tempering with
it (besides the added ability to install it into the GAC). I did a lit
exercise myself there I signed the app, compiled, disassembled it, changed
some IL, assembled it and tried to load it but got the loader exception. Now
partial signing allows to keep the private key in the seperate location from
public. But how can I load the assembly which has been just partially
signed? If I am a dev and I work on some assembly, I want to test it, but I
cannot because I cannot loaded? What do I do know? Everytime I need to test
I have to resign it?

thanks for any advice or suggestion or explanation,

Laimis



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.771 / Virus Database: 518 - Release Date: 28/09/2004



[microsoft.public.dotnet.languages.csharp]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top