I am trying to firmly name the assembly with the CA file.
When I try to use it, I get the following error:
Error MSB3325: The following key file could not be imported: myCert.pfx. The key file can be password protected. To fix this, try importing the certificate again or manually installing the certificate in the Strong CSP name with the following container name: VS_KEY_B763CB2413AC1708
I tried uninstalling it and reinstalling PFX using
sn -d VS_KEY_B763CB2413AC1708 sn -i myCert.pfx VS_KEY_B763CB2413AC1708
But that did not work. I tried to put the certificate in the certificate store - this did not change either. I tried to start Visual Studio as an administrator, and also execute MSBuild from the command line.
I also tried to delay the build subscription with the locally generated certificate (which worked) and then resign using
sn -R myAssembly.dll myCert.pfx
Then I get the following error:
Failed to re-sign the assembly -- Keyset does not exist
I found the requirements for a code signing certificate in ClickOnce Manifest Signing and a strong name. Building a signature using the Project Designer Visual Studio signature page, signing assembly . It seems like they all met, but I probably missed something. How can I solve this problem?
Chris
source share