Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Signing ClickOnce with a certificate? [closed]

What is the process of obtaining a certificate to sign my ClickOnce assembly(ies)?

I've got a few ClickOnce applications at my company, but they are all signed with temporary certificates created by Visual Studio. Those are obviously not Trusted Root Authorities nor Trusted Publishers. I've followed along the article Configuring ClickOnce Trusted Publishers, and I like the experience when something is signed with a certificate that is both a Trusted Root Authority and Trusted Publisher (that is, no prompt, just an install).

  1. Can I use the same certificate to sign multiple ClickOnce assemblies?
  2. How much does a certificate cost?
  3. What information do I need to provide when obtaining the certificate?
  4. Does the certificate need to be aware of where the publishing location is? For example, if I currently have my ClickOnce applications available from http://apps.mycompany.com/ and I want to change this later, for example http://www.mycompany.com/apps or http://apps.mysubcompany.com, will I have to obtain another certificate?
  5. Are there recommended publishers to obtain from for ClickOnce signing (for example, someone who might already be in an Windows XP, Windows Vista, or Windows 7 Trusted Root Authority store)?
  6. How can I streamline installation to the Trusted Publisher store?
like image 653
Brian Avatar asked Jun 10 '09 19:06

Brian


People also ask

How do I stop ClickOnce manifest signing?

To disable ClickOnce security settings With a project selected in Solution Explorer, on the Project menu, click Properties. Click the Security tab. Clear the Enable ClickOnce Security Settings check box.

Does ClickOnce require admin rights?

Windows Installer deployment requires administrative permissions and allows only limited user installation; ClickOnce deployment enables non-administrative users to install and grants only those Code Access Security permissions necessary for the application.


2 Answers

I had to work through the signed ClickOnce recently. It was not the most smooth experience, but once this has been done (and wired to the automated publishing) it started working like a marvel. Here's the actual product, if you are interested in the behavior: Forecasting Add-in for Excel.

Article on ClickOnce Manifest Signing and Strong-Name Assembly Signing was a good start.

Can I use the same certificate to sign multiple ClickOnce assemblies?

Yes.

How much does a certificate cost?

Tucows offers certificates for 75$, but the process is rather slow.

What information do I need to provide when obtaining the certificate?

They check your documents (e.g. a scan of your certificate of incorporation), check your whois record and things like this.

Does the certificate need to be aware of where the publishing location is?

This was not needed in our case.

like image 59
Rinat Abdullin Avatar answered Sep 28 '22 04:09

Rinat Abdullin


I have a code signing certificate from Thawte, and it has worked very well (once I got the signing procedure figured out...)

  • It costs US$299 per year (Microsoft Authenticode (Multi-Purpose) Certificate)

  • Thawte is already a trusted root in Windows so for clients it works fine. (I had to install extra root certificates on the signing machine, though.)

You are welcome to check out our app at http://www.ludesi.com/download.

like image 31
andyhammar Avatar answered Sep 28 '22 04:09

andyhammar