如何在不参与Mac开发人员程序的情况下对应用进行代码签名? [英] How can I codesign an app without being in the mac developer program?

查看:189
本文介绍了如何在不参与Mac开发人员程序的情况下对应用进行代码签名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试以下操作时:

mba:Utilities ryan$ sudo codesign -fs /Applications/Utilities/Boot\ Camp\ Assistant.app/

我收到此错误:

/Applications/Utilities/Boot Camp Assistant.app/: no identity found

显然我没有适当的代码签名,但是如果我注册了Mac开发人员程序,它将可以使用.

Apparently I don't have a proper code signature, but if I sign up for the mac developer program, it would work.

如何在不注册mac开发人员程序的情况下获得签名?

How can I get a signature without enrolling in the mac developer program?

推荐答案

您需要创建一个自签名证书.

You need to create a self-signed certificate.

  1. 打开钥匙串访问.
  2. 选择钥匙串访问>证书助手>创建证书...
  3. 输入名称
  4. 将证书类型"设置为代码签名"

然后,如果您的证书名称为my-new-cert,则您的命令应如下所示:

Then, your command should look like this, if your certificate name is my-new-cert:

sudo codesign -fs my-new-cert /Applications/Utilities/Boot\ Camp\ Assistant.app


这适用于OS X 10.10 Yosemite.


This works on OS X 10.10 Yosemite.

此处的说明: http://support.apple.com/kb/PH7173

这篇关于如何在不参与Mac开发人员程序的情况下对应用进行代码签名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆