Using StrongNameMembershipCondition to set policy

  • Thread starter Thread starter Roy Chastain
  • Start date Start date
R

Roy Chastain

At this point, I have 2 issues.

1) - How to get a key blob to use in the constructor to
StrongNameMembershipCondition?

2) - The output of
SN -tp key.snk
does not match the output of
SN -Tp assembly.dll
of an assembly that was signed with the key.snk file. This means that
I am very confused as to what is going on. (I know if I take the
string returned from -Tp, I can put that into the .NET Framework
Configuration Utility as the public key of a Strong Name and my
assemblies are granted the correct permissions.

Questions
1) - Which representation of the public key do I use? The one from
-tp or the one from -Tp? I would assume the -Tp version but where did
the -tp value come from?

2) - Once the representation is decided on, is there more to a key
blob than these bits?

I know how to deal with keys in unmanged code, but that seems a lot of
effort for this exercise.
 
Use the secutil.exe tool from the framework sdk to extract the strongname
public key blob from an assembly.

--
Remove "user" from the email address to reply to the author.

This posting is provided "AS IS" with no warranties, and confers no rights

Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
 
Back
Top