首页 > 数据库技术 > 详细

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

时间:2017-10-28 21:52:55      阅读:430      评论:0      收藏:0      [点我收藏+]

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证书 为例 )

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!