Using StrongNameMembershipCondition to set policy

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

Feroze [MSFT]

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
 

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

Top