Getting an Error when Signing a Click-Once Application

I got an authenticode (2048 bit Microsoft Enhanced Crypto v1.0) key from instantssl.com and ran pvkimprt on it. Both my .spc and .pvk are directly under C:\
Since I installed pvkimprt to the Windows directly it exported the .pfx file to C:\Windows
I then moved the .pfx file to C:\ and ran the cert manager to import the .pfx into my personal store.

So far so good, or at least I thought.

In Whidbey Beta 2 I loaded the .pfx from the store (Select from Store), entered the password and compiled it, no problem.

But when I loaded the .pfx from C:\ into the 'Sign the Assembly' box it prompted me for my password and then told me that it could not find the key or certificate and therefore could not run decryption. It also won't compile or publish.

What am I doing wrong

Any ideas would be greatly appreciated.




Answer this question

Getting an Error when Signing a Click-Once Application

  • Andrei Gheorghe

    Hi,

    To understand better what could be causing this, can you answer these questions:

    1. After you browsed to the .pfx file under c:\ and entered your password, did the .pfx file get copied into the root folder of your project
    2. What is the value of the AssemblyOriginatorKeyFile property in your project file
    3. Do you have this same problem when you browse to test certs created by VS

    Thanks,
    -Patrick Darragh

  • Getting an Error when Signing a Click-Once Application