码迷,mamicode.com
首页 > 数据库 > 详细

Mac 创建证书(以 创建gdb证书 为例 )

时间:2017-10-28 22:00:25      阅读:555      评论:0      收藏:0      [点我收藏+]

标签:es2017   iat   rest   set   nta   dia   default   UI   restart   

open /Applications/Utilities/Keychain\ Access.app/

打开 钥匙串访问

技术分享

技术分享

技术分享

技术分享

继续继续

技术分享

技术分享

技术分享

技术分享

 创建完毕。

Now that we have a certificate, we need to use it to sign GDB. First, we‘ll restart the taskgatedprocess to make sure it picks up the new certificate. Quit Keychain Access (you must quit Keychain Access!) and return to the Terminal for these final commands.

Find the taskgated process.

ps -e grep taskgated
技术分享
 

The first number in the above output is the PID. Use this to kill the process (it will immediately restart itself).

Now you can finally code sign GDB.

# Homebrew version
$ codesign -s gdb-cert $(which gdb)
  技术分享

Now you should be all set! The OS X Keychain may ask for your password the first time you attempt to debug a program, but it should work!

 

Mac 创建证书(以 创建gdb证书 为例 )

标签:es2017   iat   rest   set   nta   dia   default   UI   restart   

原文地址:http://www.cnblogs.com/SZxiaochun/p/7747989.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!