full downloads - Clickonce App failed update After Certificates expired
NZMK.com
 
  Minimize
View_Blog
 
Jul 21

Written by: host
7/21/2009 11:33 AM 

Just do a renew our Verisign certificate and sign to our clickonce application. But the clickonce app failed to update itself.
I do few google search find there are two possible way to slove this issue.

But that only help the test certificate not the one you buy from Verisign or Thawte. And you can download the "renewcert.exe" from here.
And you need install visual studio express or visual studio 2005/2008 to be able run "renewcert.exe".


Step 1: 

Step 2:
Retieve private key from lod cert and new cert
Go to folder "cd C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Samples\Security\capicom\vbs"
run "cscript.exe cstore.vbs view" to list all certificate installed on you local pc.

Retrieve the Private Key -> Container name from your old cert as shows below

Retieve the SHA1 hash value from youe new key

Step 3:
Go to "cd C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin" folder

Execute following command 
"signtool sign /manifest /snkc {xx-xx-xx-xx-x} /sncsp "Microsoft Enhanced Cryptographic Provider v1.0" /sha1 xxxxxxxxxx myapp.application"

{xx-xx-xx-xx-x} is the Private Key from old cert
xxxxxxxxxx is the SHA1 hash value

You should get following message when the sign successful:
"Successfully signed: myapp.application"

Tags:

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Add Comment   Cancel