Tony said:
[...]
If I have created a strong name for an assembly and this assembly has been
placed in the GAC how do I get this private
key that is mentioned in the text.
You don't. That's the point!
If you or anyone else could retrieve the private key from an assembly
that's been placed in the GAC, then it would negate the whole point of
having a private key. Anyone could then impersonate you and your
original private key.
There's a reason the key is described as "private". You should keep it
to yourself.
I have never thought about this private key because I have never used it so
I just curious how I can get it ?
Generally, you would be issued a certificate by some certificate
provider, who essentially provides a private key for you.
Hopefully, you should never have to actually know the private key
itself. Rather, it's encapsulated in a certificate that you can use for
encryption/strong-naming/etc.
My recollection is that you can self-issue a certificate for
low-security purposes. It won't be trusted when a root authority is
needed, but it's enough for strong-naming. Unfortunately (or
fortunately?
) I haven't had a need to sign my .NET programs and so
have no first-hand, practical experience with it, so I can't tell you
all the specifics.
I can tell you that you should keep your private key to yourself.
Pete