I have a Windows Forms Application written in VB using Visual Studio 2010 that is signed but the code signing certificate has expired so I'm trying to figure out how to rebuild the assembly using a new certificate.
I used Internet Explorer -> Tools -> Internet Options -> Content -> Certificates -> Export
I asked it to export a Private key, use .PFX format, include all certificates, and to export all extended properties
This produced a .PFX file called MyApp.pfx
When I try to specify this file on the Signing tab of the My Project section (Choose a strong name key file) of my VS 2010 project, after entering the password, I get the following error message:
"Cannot find the certificate and private key for decryption"
What am I doing wrong?
Also, I have the following post-build command:
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\signtool" sign /f C:\Path\MyCodeSigningCertificatePrivateKey.pfx /p xxxx $(TargetFileName)
This command executes without error.
It appears to me that this is re-signing the assembly after every build making the checked "Sign The Assembly" option on the Signing tab of my VS 2010 project redundant. Am I correct?