<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Keychain Access From Shell</title>
	<atom:link href="http://blog.macromates.com/2006/keychain-access-from-shell/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.macromates.com/2006/keychain-access-from-shell/</link>
	<description>TextMate and OS X</description>
	<lastBuildDate>Wed, 03 Feb 2010 16:53:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Lord Anubis</title>
		<link>http://blog.macromates.com/2006/keychain-access-from-shell/#comment-4364</link>
		<dc:creator>Lord Anubis</dc:creator>
		<pubDate>Thu, 31 Dec 2009 23:57:40 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2006/04/17/keychain-access-from-shell/#comment-4364</guid>
		<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Thanks for the explanation, but I&#039;am looking for a way to get a system key. Do you know how to get that working, I have no clue how to do that.&lt;/p&gt;

&lt;p&gt;Thanks in advance&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,</p>

<p>Thanks for the explanation, but I&#039;am looking for a way to get a system key. Do you know how to get that working, I have no clue how to do that.</p>

<p>Thanks in advance</p>]]></content:encoded>
	</item>
	<item>
		<title>By: cube</title>
		<link>http://blog.macromates.com/2006/keychain-access-from-shell/#comment-3665</link>
		<dc:creator>cube</dc:creator>
		<pubDate>Fri, 20 Feb 2009 00:34:15 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2006/04/17/keychain-access-from-shell/#comment-3665</guid>
		<description>&lt;p&gt;you want service: instead of where:&lt;/p&gt;

&lt;p&gt;cheers!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>you want service: instead of where:</p>

<p>cheers!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://blog.macromates.com/2006/keychain-access-from-shell/#comment-3323</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Tue, 08 Jul 2008 02:00:12 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2006/04/17/keychain-access-from-shell/#comment-3323</guid>
		<description>&lt;p&gt;@ Drew,
Have had limited luck with that. Looks like this:
tell application &quot;Keychain Scripting&quot;
    Make new key with properties {Name:&quot;network name&quot;, Kind: &quot;AirPort network password&quot;, where: F0413E9D-10F0-4968-8D58-F372AA6054C3, password:&quot;password&quot;}
    end tell&lt;/p&gt;

&lt;p&gt;It doesn&#039;t like the &#039;Where&#039; item - which i assume is the SSID or something of the network (These properties are pulled out of keychain access). WHen i remove &#039;where&#039;, it compiles ok, but when run it says &quot;Can&#039;t make class key&#039;.
Where am I going wrong?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@ Drew,
Have had limited luck with that. Looks like this:
tell application &#034;Keychain Scripting&#034;
    Make new key with properties {Name:&#034;network name&#034;, Kind: &#034;AirPort network password&#034;, where: F0413E9D-10F0-4968-8D58-F372AA6054C3, password:&#034;password&#034;}
    end tell</p>

<p>It doesn&#039;t like the &#039;Where&#039; item &#8211; which i assume is the SSID or something of the network (These properties are pulled out of keychain access). WHen i remove &#039;where&#039;, it compiles ok, but when run it says &#034;Can&#039;t make class key&#039;.
Where am I going wrong?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: drew</title>
		<link>http://blog.macromates.com/2006/keychain-access-from-shell/#comment-3322</link>
		<dc:creator>drew</dc:creator>
		<pubDate>Mon, 07 Jul 2008 20:34:25 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2006/04/17/keychain-access-from-shell/#comment-3322</guid>
		<description>&lt;p&gt;@ Mark,
You would be better off using Keychain scripting via Apple Script to create the key.
something along the lines of 
Make new key with properties …&lt;/p&gt;

&lt;p&gt;Then distribute it as an app and run via Remote Desktop, and remove it since it can recreate the password keys on any mac, it&#039;s a potential security risk.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@ Mark,
You would be better off using Keychain scripting via Apple Script to create the key.
something along the lines of 
Make new key with properties …</p>

<p>Then distribute it as an app and run via Remote Desktop, and remove it since it can recreate the password keys on any mac, it&#039;s a potential security risk.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://blog.macromates.com/2006/keychain-access-from-shell/#comment-3320</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 07 Jul 2008 02:29:04 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2006/04/17/keychain-access-from-shell/#comment-3320</guid>
		<description>&lt;p&gt;Hi - been a while since a post - but im looking to ADD a new item to the keychain through the security command - to be pricise a wireless password. We have 400+ MBP&#039;s and our wireless credentials will change - we want to be able to roll out the wireless password to all these users without having to distribute passwords/get them to do it. ANyone have any idea how we could do this through the &#039;Security&#039; command?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi &#8211; been a while since a post &#8211; but im looking to ADD a new item to the keychain through the security command &#8211; to be pricise a wireless password. We have 400+ MBP&#039;s and our wireless credentials will change &#8211; we want to be able to roll out the wireless password to all these users without having to distribute passwords/get them to do it. ANyone have any idea how we could do this through the &#039;Security&#039; command?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Christian</title>
		<link>http://blog.macromates.com/2006/keychain-access-from-shell/#comment-3020</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Tue, 22 Jan 2008 01:00:40 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2006/04/17/keychain-access-from-shell/#comment-3020</guid>
		<description>&lt;p&gt;You can also trim the ruby part and do with pure shell (bash needed):&lt;/p&gt;

&lt;p&gt;pwline=$(security …) # read the pw
pwpart=${pwline#*&#92;&quot;} # strip the leading quote
echo ${pwpart%&#92;&quot;} # strip the trailing quote&lt;/p&gt;

&lt;p&gt;This won&#039;t help with the hex encoding though.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You can also trim the ruby part and do with pure shell (bash needed):</p>

<p>pwline=$(security …) # read the pw
pwpart=${pwline#*&#92;&#034;} # strip the leading quote
echo ${pwpart%&#92;&#034;} # strip the trailing quote</p>

<p>This won&#039;t help with the hex encoding though.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Boardman</title>
		<link>http://blog.macromates.com/2006/keychain-access-from-shell/#comment-2991</link>
		<dc:creator>Ian Boardman</dc:creator>
		<pubDate>Wed, 02 Jan 2008 20:37:19 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2006/04/17/keychain-access-from-shell/#comment-2991</guid>
		<description>&lt;p&gt;At least for me, in remote login, even after unlock is performed, still get &quot;User interaction is not allowed.&quot;  I&#039;m running the latest version of MacOS 10.4.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>At least for me, in remote login, even after unlock is performed, still get &#034;User interaction is not allowed.&#034;  I&#039;m running the latest version of MacOS 10.4.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan</title>
		<link>http://blog.macromates.com/2006/keychain-access-from-shell/#comment-2909</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Wed, 21 Nov 2007 08:31:16 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2006/04/17/keychain-access-from-shell/#comment-2909</guid>
		<description>&lt;p&gt;@Matthew: When using via SSH you have to unlock the keychain first in the script or else with:
security unlock-keychain -p &#039; &#039;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Matthew: When using via SSH you have to unlock the keychain first in the script or else with:
security unlock-keychain -p &#039; &#039;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Shell Account</title>
		<link>http://blog.macromates.com/2006/keychain-access-from-shell/#comment-2545</link>
		<dc:creator>Shell Account</dc:creator>
		<pubDate>Tue, 29 May 2007 09:53:40 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2006/04/17/keychain-access-from-shell/#comment-2545</guid>
		<description>&lt;p&gt;Great scripts!
Thanks Allan.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Great scripts!
Thanks Allan.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: paul</title>
		<link>http://blog.macromates.com/2006/keychain-access-from-shell/#comment-2203</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Tue, 16 Jan 2007 09:33:58 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2006/04/17/keychain-access-from-shell/#comment-2203</guid>
		<description>&lt;p&gt;I&#039;m writing to verify the &lt;code&gt;security: SecKeychainFindGenericPassword: User interaction is not allowed.&lt;/code&gt; bit. Also, this page is the only hit in google for&lt;/p&gt;

&lt;p&gt;security find-generic-password &quot;User interaction is not allowed.&quot;&lt;/p&gt;

&lt;p&gt;The app needs a console user, which doesn&#039;t make sense for a commandline app, but we work with what we got.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#039;m writing to verify the <code>security: SecKeychainFindGenericPassword: User interaction is not allowed.</code> bit. Also, this page is the only hit in google for</p>

<p>security find-generic-password &#034;User interaction is not allowed.&#034;</p>

<p>The app needs a console user, which doesn&#039;t make sense for a commandline app, but we work with what we got.</p>]]></content:encoded>
	</item>
</channel>
</rss>
