As the title states, does anyone know how to extract the private key from an snk file? We want to use the private key from the StrongName for encryption purposes. I read in:
http://msdn.microsoft.com/en-us/library/k5b5tt23(VS.80).aspx that sn -o key.snk will extract both the private/public key if they exist in the file but i tried it and...
In my organization we use snk files with strong names assemblies. We generate the snk ourselves.
In addition we use a code signing signature on the binaries. We get the pfx from Verisign.
What is the difference between these two processes?
Isn't it a problem that the snk is not recevied from Verisign also?
...
I'm unable to import an assembly, supposedly because strong name validation is failing, though this occurs even when I register the assembly to not be checked. Can somebody spot what I'm doing wrong here?
Below is a transcript. For reference, the switches to sn.exe are:
-v: Verify signature.
-Vr: Register assembly for verification sk...
I have a lot of assemblies that have set the InternalsVisibleToAttribute pointing one specifc assembly within the same solution. Unfortunately the assembly that is being pointed to has a stong name, so I always have to put the same public key token over and over again into the AssemblyInfo.cs files. Since there is no precompiler in c#,...
I'm developing a .NET package manager and one thing that got me thinking is security.
Given that anybody can potentially upload an assembly to the repository, how do I verify that said assembly comes from a trusted source? For example, I'd trust NHibernate.dll much more if it was signed with a private key of guys from NHForge. To ensur...
Hi,
I've been trying to use sgen.exe to genererate serialization assembly for my strong name signed assembly. I tried various set of parameters for sgen, but all my attempts ended with this error:
SGEN: error SGEN1: Could not load file or assembly MyLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxxxxxxxxxxx' or one of i...
How can I sign a managed c++ dll with a .pfx file??
Or is there a way to include the unsigned managed c++ dll in a signed c# project?
I realy dont need a signed dll I just need VS to stop giving me the Error "Referenced assembly 'SlimDX' does not have a strong name." in my c# project that must be signed.
...
I have a pretty complex WPF and C++/CLI application that was built using .NET 3.5. We've migrated to 4.0 to take advantage of the WPF goodies, so all our projects in the solution are targeting 4.0.
On running our application on XP machines with just 4.0 (and MSVC++ 2010 [and 2008]), an error dialog will pop up with the message:
"To run...
Hi,
I have a problem to merge assemblies and signing the combined assembly with password automatically when building the project.
The visual studio built-in sign in function is pretty good that once you entered the password for the .pfx, you don't have to enter it anymore and the password seems to be well hidden (that's what I think at...