代碼簽名證書過期問題 (Code Signing Certificate Expiration Issue)


問題描述

代碼簽名證書過期問題 (Code Signing Certificate Expiration Issue)

我的代碼簽名證書有效期為 2012 年 3 月 3 日至 13 年 3 月 3 日(科摩多)

  1. 將重新更新它,我會發給我一個新證書(.pfx文件) ?或者我可以在 2013 年 3 月 3 日之後支付費用後使用當前證書(.pfx 文件)嗎?

  2. 現有的簽名應用程序會顯示“未經驗證的發布者”或任何2013 年 3 月 3 日之後安裝/執行期間的其他錯誤,如果我沒有使用新證書籤署 exe 和設置,或者我沒有購買新證書。請注意,我簽署了軟件的所有 dll、exe 以及最終設置 exe

  3. 我是否必須在續訂時獲取新的 .snk 文件,或者我可以使用現有的.snk 文件?

  4. 我可以使用相同的 .snk 文件嗎?snk 文件來簽署不同的軟件及其設置文件?和不同的exe,dll在同一個設置中?.snk 文件是否與一個 exe 相關聯?還是可以在任何 exe(.NET 和 VB6)上使用?

我有 Windows 8 Pro + Visual Studio 6 SP6 + Visual Studio 2012 Ultimate + Microsoft 8 SDK獨立安裝

在此處輸入圖片描述

在此處輸入圖片描述


參考解法

方法 1:

A very useful article can be found here.

Answers:

  1. The expiration date is part of the file. So you'll get a new file.

  2. No. When your file is signed and timestamped, the signature will not expire when the certificate expires (explained in the linked article).

  3. .snk files are for strong naming assemblies. These are generally signed using self‑signed certificates, since strong naming is not meant to verify the authenticity of the publisher. See also this answer.

  4. Normally you would use the same .snk file to sign all your assemblies. However, strong naming only exists in the .NET world, and won't apply to any other binaries (like VB 6).

(by Computer UserAndreas)

參考文件

  1. Code Signing Certificate Expiration Issue (CC BY‑SA 2.5/3.0/4.0)

#authenticode #code-signing #signtool #winapi






相關問題

關於唯一下載的未知發布者警告 (unknown publisher warning on unique downloads)

如何避免 Authenticode 在自動構建中對 .NET 項目中的第三方庫進行簽名? (How can I avoid Authenticode signing third-party libraries in a .NET project in an automated build?)

CAPICOM - 驗證 SignedCode 來自沒有 UI 的受信任的發布者 (CAPICOM - Verify SignedCode is from a Trusted Publisher without UI)

SignTool 錯誤:訪問被拒絕 (SignTool error: Access is denied)

代碼簽名證書過期問題 (Code Signing Certificate Expiration Issue)

在沒有 app.config 的情況下在 .NET exe 中禁用驗證碼簽名驗證 (Disabling authenticode signature verification in .NET exe without app.config)

驗證 EXE 上的 Authenticode 簽名 - 沒有 CAPICOM 的 C++ (Validate Authenticode signature on EXE - C++ without CAPICOM)

EV 代碼簽名證書或 Microsoft Authenticode 的代碼簽名證書 (EV Code Signing certificate or Code Signing Certificates for Microsoft Authenticode)







留言討論