Latebinded assemblies: strongname verification

  • Thread starter Thread starter Claus Konrad
  • Start date Start date
C

Claus Konrad

Hi

I am having a a plugin-framework, where I need to load assemblies (the
plugins') into my application. I want to verify that the assembly that I am
about to load, has indeed been signed with a keypair from my company.
Be advised that it is kind of "reverse" security demands I am dealing with
here; as I am not checking the Caller (this is my self), but the Callee (the
component/assembly).

This is ofcource to prevent malicious components from being loaded by my app
(and thereby crashing the entire system). I guess it must be a pretty often
seen scenario?

How can I verify the keypair of a loaded assembly?
Reflection does not seem to give much info on this topic?


/Claus
 
Claus,

System.Reflection.AssemblyName.GetAssemblyName(dllfile), then you can
use the GetPublicKey[Token] method on the returned AssemblyName
object.



Mattias
 

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