Mac 創建證書(以 創建gdb證書 為例 )
阿新 • • 發佈:2017-10-28
pick 1-1 src for png b- num iat alt
$ codesign -s gdb-cert $(which gdb)
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 taskgatedThe 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證書 為例 )