{"id":76,"date":"2011-07-19T13:32:00","date_gmt":"2011-07-19T13:32:00","guid":{"rendered":"https:\/\/www.root42.de\/blog\/?p=76"},"modified":"2011-07-19T13:32:00","modified_gmt":"2011-07-19T13:32:00","slug":"accessing-the-keychain-in-os-x-from-the-command-line","status":"publish","type":"post","link":"https:\/\/www.root42.de\/blog\/?p=76","title":{"rendered":"Accessing the keychain in OS X from the command line"},"content":{"rendered":"<p>There is a very useful utility called <span style=\"font-family: 'Courier New', Courier, monospace;\">security(1)<\/span> in OS X, which lets you manipulate your keychain from the command line. You can easily im- and export keys and certificates using this. This is especially useful for AppStore developers, who code on multiple Macs. Having the signing keys in sync is kind of a challenging solution, if you don&#8217;t use keychain syncing via MobileMe. For example you can import a key like this into your login keychain:<\/p>\n<pre>$ security list-keychains<br \/>   \"\/Users\/yourguy\/Library\/Keychains\/login.keychain\"<br \/>   \"\/Library\/Keychains\/System.keychain\"<br \/>$ security import -k \/Users\/yourguy\/Library\/Keychains\/login.keychain somekey.pem<br \/>1 key imported.<br \/><\/pre>\n<p>Hope this helps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is a very useful utility called security(1) in OS X, which lets you manipulate your keychain from the command line. You can easily im- and export keys and certificates using this. This is especially useful for AppStore developers, who code on multiple Macs. Having the signing keys in sync is kind of a challenging &hellip; <a href=\"https:\/\/www.root42.de\/blog\/?p=76\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Accessing the keychain in OS X from the command line&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,58,24],"tags":[],"_links":{"self":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/76"}],"collection":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=76"}],"version-history":[{"count":0,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/76\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=76"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=76"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}