你希望应用程序接受传入网络连接? [英] Do you want the application to accept incoming network connection?

查看:1890
本文介绍了你希望应用程序接受传入网络连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有试图打开通信网络连接两个C二进制文件。

I have two C binaries which tries to open network connection for communication.

这是用于外部通信。当我运行,对于第一次,OS X的防火墙弹出如在标题中给出的信息。我怎样才能摆脱呢?

This is for external communication. When i run that for the first time, OS X' firewall pops up the message as given in title. How can I get rid of this?

我怀疑这是关系到code-签约?怎么办code-签署这份二进制?

I suspect this is related to code-signing? How to do code-sign this binary?

基本上我有建立这个二进制在一台Mac机,并分发之外的应用程序商店。

Basically I have to build this binary in one Mac machine, and distribute outside app store.

我怎样才能摆脱防火墙如果OS X防火墙在机器启动弹出?

How can I get rid of the firewall pop up if the OS X firewall is enabled in the machine?

推荐答案

您可以自己签署问题的应用程序二进制解决这个问题。

You can resolve this by signing the offending application binary yourself.

Disclaimer: Signing an application yourself will make an application appear more
secure to the operating system, when in reality it isn’t. Only sign applications
that you are 100% sure are not spyware or otherwise malicious. If you have any
doubts, just uninstall/reinstall.

第1部分:创建一个签名身份

我要为解决方案 - 在签署应用程序自己 - 需要我创建了一个签名的身份,也被称为签名证书。这是很容易做到的:

The solution I’m going for – signing the app myself – requires that I create a Signing Identity, also known as Signing Certificate. This is very easy to do:


  1. 开启应用程序>工具>钥匙串访问。

  2. 从钥匙串访问菜单中,选择证书助理>创建证书。

  3. 在证书的名称填写。此名称出现在Keychain Access实用程序的证书的名称。这也是参照这个证书的时候你会使用的名称。就个人而言,我使用的名称,我的签名标识。

  4. 选择从证书类型菜单code签署。

  5. 选择从类型弹出菜单中的自签名的根。

  6. 检查让我覆盖默认值复选框。

  7. 点击继续。

  8. 指定证书的序列号。任何数字都行,只要你有相同的名称和序列号,没有其他的证书。

  9. 点击继续。

  10. 填写信息的证书。您可以使用真实或虚假的数据,我用真实的数据往心里去。

  11. 点击继续。

  12. 接受的对话框其余的默认设置。

一旦完成,您将看到您在钥匙串访问证书。确认您挑选的名字,而你这一步完成。干得好!

Once completed, you will see your certificate in Keychain Access. Verify the name you picked, and you’re done with this step. Well done!

第2步:(重新)注册您的应用程序

现在你必须注册您的应用程序。要做到这一点,再次打开终端并使用以下命令:

Now you have to sign your application. To do this, open up Terminal again and use the following command:

codesign -s "My Signing Identity" -f /path/to/your/binary/app

将出现一个对话框,单击允许。

A dialog will appear, click "Allow".

现在重新启动应用程序。您将得到接受传入的连接对话框中的最后一次。点击允许。

Now start your application again. You will get the accept incoming connections dialog one last time. Click "Allow".

从现在开始,你应该不会再得到警告了!现在可以享受,而无需不便防火墙的安全是主动点击允许不断。

From now on you should no longer get the warnings anymore! Now it is possible to enjoy the security of your firewall being active without the inconvenience of having to click "allow" constantly.

来源:其中担任此更新,并注明解决方案指南是<一个首发位置原来的源href=\"http://silvanolte.com/blog/2011/01/18/do-you-want-the-application-to-accept-incoming-network-connections/\" rel=\"nofollow\">http://silvanolte.com/blog/2011/01/18/do-you-want-the-application-to-accept-incoming-network-connections/

这篇关于你希望应用程序接受传入网络连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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