我创建了一个 Electron 应用程序。现在,我想为Windows和Mac平台签名代码。但是我只有goday pfx证书。我在Windows平台上使用goday的pfx证书成功签名了代码。那么,我可以使用go daday证书在macos平台上签署 Electron 应用程序吗?
最佳答案
您可以使用GoDaddy代码签名证书对macOS应用进行签名,但是它可能无法满足您的要求。这是Apple's developer documentation所说的(添加了我的重点):
Note: Apple uses the industry-standard form and format of code signing certificates. Therefore, if your company already has a third-party signing identity that you use to sign code on other systems, you can use it with the macOS codesign command. Similarly, if your company is a certificate issuing authority, contact your IT department to find out how to get a signing certificate issued by your company. However, while these valid certificates allow you to sign your code, you can only distribute through the App Store or through the Developer ID program when you sign with a certificate issued by Apple.
因此,问题是:如何将您的应用程序分发到用户的计算机?
无论哪种方式,您都需要加入Apple Developer程序,并使用Apple发行的代码签名证书来对应用程序的macOS版本进行签名。
关于macos - 使用pfx证书在macOS上签署 Electron 应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50972141/