Monday, March 10, 2008

ClickOnce Error: The signer's certificate is not valid for signing.

Today when I was trying to publish a ClickOnce application that we use internally, I got the following error:

The signer's certificate is not valid for signing.

After looking around and some searching on Google, I was able to find the problem and resolve it. My problem was that the certificate I had been using to sign the ClickOnce deployments had expired. You can view the status of your certificate in Visual Studio, in the project properties window, on the signing tab.

To fix the problem just create a new certificate by clicking the button titled "Create Test Certificate..." It will prompt you for a password, which I left blank. Once you have the new certificate created you should be able to publish once again.

8 comments:

Guru said...

Thanks for the post. It saved my time.

Unknown said...

Thanks also for this excellent post. Interesting that the IDE ships with a business related function like expiring test certificates...

Anonymous said...

Thanks for the info. Would it have been so hard for them to add "The certificate has expired"

Aud said...

Thanks for that. Saved me some time

Diana Joseph said...

thanks, gr8 help

Phil Ruse said...

You may have written this three years ago but it helped me today. Nice one - thanks!

Jim Kennelly said...

Thanks - this helped me

Jason Cox said...

Good call. This issue annoyed me for over half an hour and I couldn't turn off the ClickOnce signing. Thanks!