转自:https://apple.stackexchange.com/a/383674/462194
Create a self-signed certificate.
- Open Keychain Access. Applications > Utilities > Keychain Access.
- Keychain Access menu > Certificate Assistant > Create a Certificate…
- Enter a name like “My Certificate”.
- Select Identity Type: Self Signed Root
- Select Certificate Type: Code Signing
- Check the Let me override defaults box
- Click Continue
- Enter a unique Serial Number
- Enter 7300 for the Validity Period.
- Click Continue
- Click Continue for the rest of the dialogs
Now sign your application
codesign -s "My Certificate" -f $(which python)
In the dialog that appears, click “Allow”.
With the OS X firewall enabled, you can remove the “Do you want the application “python” to accept incoming network connections?” message.

本文指导如何在Mac上通过Keychain Access创建一个自签名证书,用于代码签名。步骤包括打开Keychain Access,选择创建证书,设置为自签名根和代码签名类型,输入有效期,并签署应用程序。代码签署后,需要在弹出的权限对话框中允许,并解决OSX防火墙的相关提示。
526

被折叠的 条评论
为什么被折叠?



