سؤال

From what I've seen on the internet – it doesn't. (I'm referring to strong name signing of an assembly, not to certificates by certificate authorities) Which leads me to these questions:

  1. Why have date stamping for it?
  2. Do I have to keep the keys with which it was signed or can I simply create a key pair (sn –k), sign, and delete it?
هل كانت مفيدة؟

المحلول

Terms like "date stamping" and "authenticatable" only apply to code signing. A strong name is entirely different, it doesn't prove the identity of the signer. It merely allows verifying that the content of the assembly wasn't modified from the version that was used to build the program by somebody that doesn't have the private key.

A strong name isn't verified in full trust mode since .NET 3.5 SP1. A policy that you can override with a .config file and the <bypassTrustedAppStrongNames> element. MSDN article is here.

You certainly want to keep the .snk file around. You won't be able to deploy bug fixes for a particular assembly if you throw it away.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top