問題描述
代碼簽名證書過期問題 (Code Signing Certificate Expiration Issue)
我的代碼簽名證書有效期為 2012 年 3 月 3 日至 13 年 3 月 3 日(科摩多)
將重新更新它,我會發給我一個新證書(.pfx文件) ?或者我可以在 2013 年 3 月 3 日之後支付費用後使用當前證書(.pfx 文件)嗎?
現有的簽名應用程序會顯示“未經驗證的發布者”或任何2013 年 3 月 3 日之後安裝/執行期間的其他錯誤,如果我沒有使用新證書籤署 exe 和設置,或者我沒有購買新證書。請注意,我簽署了軟件的所有 dll、exe 以及最終設置 exe
我是否必須在續訂時獲取新的 .snk 文件,或者我可以使用現有的.snk 文件?
我可以使用相同的 .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:
The expiration date is part of the file. So you'll get a new file.
No. When your file is signed and timestamped, the signature will not expire when the certificate expires (explained in the linked article).
.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.
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 User、Andreas)