J
Joe Abou Jaoude
Hi,
I am using StrongNameIdentityPermission to restrict users to access our
dll components.
we use a file key.snk to sign our assemblies with a strong name.
Now I want to retrieve the public key from key.snk to give the
StrongNameIdentityPermission attribute the proper publickey value.
<StrongNameIdentityPermission( SecurityAction.LinkDemand, _
PublicKey:="..." >
I tried to accomplish that using the sn utility, without any success.
sn -p gives me the public key encrypted
sn -t gives me the public key token wich apparently is something
different from the public key.
So obviously I am doing something wrong, and i was thinking that maybe
we can't extract the public key this way for security reasons. so how
can I get it ?
thanks
I am using StrongNameIdentityPermission to restrict users to access our
dll components.
we use a file key.snk to sign our assemblies with a strong name.
Now I want to retrieve the public key from key.snk to give the
StrongNameIdentityPermission attribute the proper publickey value.
<StrongNameIdentityPermission( SecurityAction.LinkDemand, _
PublicKey:="..." >
I tried to accomplish that using the sn utility, without any success.
sn -p gives me the public key encrypted
sn -t gives me the public key token wich apparently is something
different from the public key.
So obviously I am doing something wrong, and i was thinking that maybe
we can't extract the public key this way for security reasons. so how
can I get it ?
thanks