使用證書籤署 ClickOnce? (Signing ClickOnce with a certificate?)


問題描述

使用證書籤署 ClickOnce? (Signing ClickOnce with a certificate?)

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?

‑‑‑‑‑

參考解法

方法 1:

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.

方法 2:

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.

(by BrianRinat Abdullinandyhammar)

參考文件

  1. Signing ClickOnce with a certificate? (CC BY‑SA 3.0/4.0)

#clickonce #code-signing






相關問題

ClickOnce 發布 (ClickOnce publishing)

如何在無需重新下載每個文件的情況下更新已部署的 clickonce 應用程序? (How do I update a deployed clickonce application without having to redownload every file?)

Bạn cần thực hiện các bước nào để tạo lại tệp kê khai khi sử dụng triển khai Nhấp Một lần (What steps do you need to take to regenerate the manifest when using Click Once deployment)

將 VS 2013 中的 WPF 應用程序發佈到 Programm Files 中——不可能嗎? (Publishing a WPF app in VS 2013 in to Programm Files -- impossible?)

ClickOnce部署,需要係統更新Microsoft.mshtml (ClickOnce Deployment, system update required Microsoft.mshtml)

ClickOnce 從緩存中安裝舊程序集 (ClickOnce installing old assemblies from cache)

使用 MSBuild 發布 ClickOnce 應用 (Publish ClickOnce app with MSBuild)

單擊一個發布 (Click one Release)

使用 PostSharp 1.0 的 ClickOnce 應用程序似乎需要 GAC 中的 1.5 程序集 (ClickOnce application that uses PostSharp 1.0 seems to require 1.5 assemblies in GAC)

如何在遠程計算機上運行 ClickOnce 應用程序 (.appref-ms)? (How to run a ClickOnce application (.appref-ms) on a remote computer?)

使用證書籤署 ClickOnce? (Signing ClickOnce with a certificate?)

不安裝證書可以使用 MSBuild 的 SignFile 嗎? (Can MSBuild's SignFile be used without installing the certificate?)







留言討論