对库进行代码签名
问题及错误描述
使用数字签名对已编译的库进行签名时,需要执行以下步骤。
分步指南
- 创建代码签名证书并将其添加到 Windows 证书存储区(请参阅下文有关“Powershell 命令”的信息说明)
- 将证书添加到视图 > 安全屏幕 > 用户 > 数字签名

- 在同一屏幕上选择强制签名已编译的库
- 另存为编译库
Powershell 命令:
$cert = New-SelfSignedCertificate -DNSName "www.self.signed" -CertStoreLocation Cert:\CurrentUser\My -Type CodeSigningCert -Subject "But surely you have your own CA signed code signing cert"