Error while trying signing the assembly with my .pfx file


  • In Visual Studio in my project's Properties under the Signing tab if I try to sign the assembly by locating my .pfx CA-issued certificate, once I insert my password I get the error "Cannot find the certificate and private key for decryption".

    As opposite, when I try to sign the ClickOnce manifest with the same file (by clicking on the "Select from File..." button) I do not get any error.

    Again if I use the same file with signtool.exe it works perfectly. Hence where is the problem?

    • Moved by lucy-liu Thursday, March 08, 2012 7:53 AM it is a windows sdk issue (From:Visual Studio Editor)
    Monday, March 05, 2012 12:57 PM

All replies

  • Hi Ganswerinfieri,
    As the Visual Studio Editor forum only discusses questions about editor features in Visual Studio.
    I will move this thread to Windows SDK for a better support.
    Thank you for your understanding!

    Lucy Liu [MSFT]
    MSDN Community Support | Feedback to us

    Thursday, March 08, 2012 7:53 AM