﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » Generate Certificate for ClickOnce</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 01:39:46 GMT</lastBuildDate><ttl>20</ttl><item><title>Generate Certificate for ClickOnce</title><link>http://forum.strataframe.net/FindPost21483.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;i am looking for a Tool to generate non-expireing certificates for clickonce deployment of our applications. All i found so far is some Microsoft command line tool, which explicitly states that the certificates it generates are only for "test" purposes.&lt;/P&gt;&lt;P&gt;Thanks.</description><pubDate>Wed, 14 Jan 2009 10:24:51 GMT</pubDate><dc:creator>Philipp Guntermann</dc:creator></item><item><title>RE: Generate Certificate for ClickOnce</title><link>http://forum.strataframe.net/FindPost21511.aspx</link><description>LOL  :D&lt;br&gt;
&lt;br&gt;
Glad the tool worked for you too!&lt;br&gt;
&lt;br&gt;</description><pubDate>Wed, 14 Jan 2009 10:24:51 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Generate Certificate for ClickOnce</title><link>http://forum.strataframe.net/FindPost21505.aspx</link><description>[quote][b]Ivan George Borges (01/13/2009)[/b][hr][quote]... and it now has a certificate expiring on the 13.01.2059 :D&lt;P&gt;Have you started worrying about what you are going to do after that? :hehe:[/quote]&lt;P&gt;&lt;U&gt;worst case scenario:&lt;/U&gt;&lt;BR&gt;&lt;BR&gt;telling someone that it wasnt my fault :)&lt;P&gt;&lt;U&gt;best case scenario:&lt;/U&gt;&lt;P&gt;laying on the beach, enjoying the cocktails -and the girls who get them to me :w00t:</description><pubDate>Tue, 13 Jan 2009 17:19:28 GMT</pubDate><dc:creator>Philipp Guntermann</dc:creator></item><item><title>RE: Generate Certificate for ClickOnce</title><link>http://forum.strataframe.net/FindPost21504.aspx</link><description>[quote]... and it now has a certificate expiring on the 13.01.2059 :D&lt;P&gt;Have you started worrying about what you are going to do after that? :hehe:</description><pubDate>Tue, 13 Jan 2009 16:03:09 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Generate Certificate for ClickOnce</title><link>http://forum.strataframe.net/FindPost21503.aspx</link><description>Cool!  This is a must have when using ClickOnce. Your smart to figure this out early instead of suddenly getting a ton of support calls because the app won't install anymore!  :pinch:</description><pubDate>Tue, 13 Jan 2009 15:17:18 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Generate Certificate for ClickOnce</title><link>http://forum.strataframe.net/FindPost21498.aspx</link><description>Hi Greg,&lt;/P&gt;&lt;P&gt;i have now tried this at home. I installed VC++ Express and downloaded the Renewcert Project from the URL you linked. i then changed the code to add 50 years instead of 5 and compiled it.&lt;/P&gt;&lt;P&gt;It really works :D Made a little test c# solution and it now has a certificate expiring on the 13.01.2059 :D&lt;/P&gt;&lt;P&gt;Many thanks for that information !!</description><pubDate>Tue, 13 Jan 2009 11:52:40 GMT</pubDate><dc:creator>Philipp Guntermann</dc:creator></item><item><title>RE: Generate Certificate for ClickOnce</title><link>http://forum.strataframe.net/FindPost21496.aspx</link><description>Yes, you only see the untrusted message on first install. After that, when the user starts the app, a "launching application" dialog will appear that indicates that ClickOnce is verifying the app. The app will then either startup or if a new build is available and required, it will automatically start downloading, install itself and the app will start.  I can't remember what happens with an optional upgrade...just don't do optional installations (maybe once in two years).</description><pubDate>Tue, 13 Jan 2009 11:12:16 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Generate Certificate for ClickOnce</title><link>http://forum.strataframe.net/FindPost21495.aspx</link><description>Hi Greg,&lt;/P&gt;&lt;P&gt;thanks. i will try that tool tommorow.&lt;/P&gt;&lt;P&gt;Can u confirm that the "Untrusted Source" Message only appears on the first install, and not anymore on updates ? Because we plan to distribute the ClickOnce-Setup.exe file through novell NAP, so that a user clicks that and it will allways be up-to-date.&lt;/P&gt;&lt;P&gt;If it were showing the message for the updates aswell, instead we would need to distribute 2 shortcuts (one for update, and one for regular program use).</description><pubDate>Tue, 13 Jan 2009 10:42:14 GMT</pubDate><dc:creator>Philipp Guntermann</dc:creator></item><item><title>RE: Generate Certificate for ClickOnce</title><link>http://forum.strataframe.net/FindPost21492.aspx</link><description>Philip,&lt;br&gt;
&lt;br&gt;
What I did for ClickOnce is to just generate the certificate using Visual Studio, then I used the tool from this site to extend the time of the certificate:&lt;br&gt;
&lt;br&gt;
[url]http://www.may.be/renewcert/[/url]&lt;br&gt;
&lt;br&gt;
I made it last like 10 years...probably by then we'll be using something else anyway.  I did this about a year ago, so I don't remember exactly how it works, but I got it to work eventually. If you are already installing your app via ClickOnce in production, be sure to update the current certificate, or everybody has to uninstall/reinstall.&lt;br&gt;
&lt;br&gt;
Good luck!&lt;br&gt;
&lt;br&gt;
Greg</description><pubDate>Tue, 13 Jan 2009 10:31:13 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Generate Certificate for ClickOnce</title><link>http://forum.strataframe.net/FindPost21489.aspx</link><description>[quote][b]you are starting with a .SPC file that you received from the certificate company as well as the PVK.[/b][/quote]&lt;/P&gt;&lt;P&gt;Hi Trend, thanks for the reply.&lt;/P&gt;&lt;P&gt;However, we dont have a spc from a certificate company. basicly i want to make my own certificate. i dont care about the warning message during install. but i want it to last very long, or better never expire during the applications lifetime.</description><pubDate>Tue, 13 Jan 2009 10:12:15 GMT</pubDate><dc:creator>Philipp Guntermann</dc:creator></item><item><title>RE: Generate Certificate for ClickOnce</title><link>http://forum.strataframe.net/FindPost21486.aspx</link><description>Yeah, this can be a frustrating process.&amp;nbsp; It is never straight forward.&amp;nbsp; The ultimate goal is to get the certificate in a pfx format then you can use the code signing tool to sign any EXE or install.&amp;nbsp; This is the approach that we take.&amp;nbsp; Generally you are starting with a .SPC file that you received from the certificate company as well as the PVK.&amp;nbsp; To produce a PFX, you can use this pvkimprt tool:&lt;/P&gt;&lt;P&gt;[codesnippet]pvkimprt.exe -PFX mycert.spc mykey.pvk[/codesnippet]</description><pubDate>Tue, 13 Jan 2009 09:36:59 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Generate Certificate for ClickOnce</title><link>http://forum.strataframe.net/FindPost21485.aspx</link><description>this is what i got from reading the msdn information on the subject:&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;I start the "Visual Studio 2008 Command Prompt" and first enter:&lt;/P&gt;&lt;P&gt;C:\Programme\Microsoft Visual Studio 9.0\VC#&amp;gt;makecert.exe -n "CN=ERV" -pe -r -ek&lt;BR&gt;u 1.3.6.1.5.5.7.3.3 -e 01/01/2039 -sv ERV.pvk ERV.cer -a sha1&lt;BR&gt;&lt;BR&gt;This will ask me for a password twice. I choose "mypassword" for both.&lt;BR&gt;&lt;BR&gt;It will then say: "Succeded".&lt;/P&gt;&lt;P&gt;2) Next i'll enter:&lt;/P&gt;&lt;P&gt;C:\Programme\Microsoft Visual Studio 9.0\VC#&amp;gt;pvk2pfx.exe -pvk ERV.pvk -spc ERV.c&lt;BR&gt;er -pfx ERV.pfx&lt;BR&gt;&lt;BR&gt;This will ask me for the password again. i enter "mypassword" again.&lt;/P&gt;&lt;P&gt;It will then create a file called ERV.pfx&lt;/P&gt;&lt;P&gt;3) Within the Solution in Visual Studio i goto properties-&amp;gt;signing-&amp;gt; and select "From File". I then choose the created "ERV.pfx" file.&lt;/P&gt;&lt;P&gt;It will ask me for the password. I enter "mypassword".&lt;/P&gt;&lt;P&gt;Not i get an Errormessage saying "The password is invalid" !!&lt;/P&gt;&lt;P&gt;I also tried the same procedure selected "No Password" at step 1 and then never entering a password. It will still ask for a password when selecting the file in VS and then say "The password is invalid".&lt;/P&gt;&lt;P&gt;^^&lt;BR&gt;&lt;BR&gt;</description><pubDate>Tue, 13 Jan 2009 08:30:45 GMT</pubDate><dc:creator>Philipp Guntermann</dc:creator></item></channel></rss>