macos - 使用pfx证书在macOS上签署 Electron 应用

标签 macos electron code-signing

我创建了一个 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的App Store出售的,则需要become an Apple Developer,从Apple获得Mac App Distribution证书,然后用该应用程序签名,然后再将其提交给Apple。
  • 如果它是在Apple App Store之外分发的(例如,通过Web下载),那么您还需要成为Apple开发人员,获得开发人员ID证书,并使用该证书进行签名。如果您未使用正确的证书进行签名,则Gatekeeper会阻止用户打开应用程序,除非他们经过特殊的过程来信任该应用程序。

  • 无论哪种方式,您都需要加入Apple Developer程序,并使用Apple发行的代码签名证书来对应用程序的macOS版本进行签名。

    关于macos - 使用pfx证书在macOS上签署 Electron 应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50972141/

    相关文章:

    linux - 使用 eval 的脚本启动的子进程不会在 ctrl+c 上中断

    Python OpenCV 在其他应用程序之上打开窗口

    python - 加载在 linux 中 pickle 的数据在 mac 中失败

    javascript - 我如何根据我的 YML 构建文件在 Javascript 中要求不同的模块?

    linux - Linux 上 .NET Core 的 Authenticode 等效项是什么?

    php - 如何修复 PHP 警告 : Unable to load dynamic library: php_intl. ddl

    node.js - Nodejs,Electron,如何添加滚动条?

    electron - 如何使用 Electron-builder NSIS 和 AppImage 发布到私有(private) GitHub?

    ios - 对钥匙串(keychain)访问 iPhone 分发证书感到困惑

    windows-installer - SmartScreen 声誉和签名的应用程序