• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Keychain scripting...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keychain scripting...


  • Subject: Re: Keychain scripting...
  • From: "John C. Welch" <email@hidden>
  • Date: Sat, 15 May 2004 12:18:54 -0500

On 5/15/04 10:39 AM, "Paul Berkowitz" <email@hidden> wrote:

>> It's been happening off and on since 10.3, it just seems to get worse every
>> release
>
> Did you try removing your Thawte and any other smime certificates as
> reported here, John? If that's the culprit for you too (or not), it would be
> good to know.

I had exactly one cert in my login.keychain. As soon as I removed that,
bang, no more empty list.


So I ran a series of tests with the following code:

tell application "Keychain Scripting"
set theKeychains to every keychain
set theKeychain to item 1 of theKeychains
set theKeys to every key of theKeychain
end tell

That will create a list of every key in my default keychain.


There were three types of SSL certs in my default keychain

Certificate
Private key
Public key

Remove Certificates only:

Private key
Public Key left

Result: Empty List, 392 keys in the keychain

Remove Private Key AND Certificates

Public Key left

Result: Empty List, 392 keys in the keychain

Remove all three:

None left

Result: 392 items in the list, 392 keys in the keychain

Remove only Private and Public Keys

Certificates Left

Result: 392 items in the list, *399* keys in the keychain. Keychain
scripting seems to be blind to certificates, so they don't exist.

Remove only Public Keys

Certificates left
Private Keys Left

Result: Empty List, 392 keys in the keychain

Remove only Public Keys and Certificates

Private Keys Left

Result: Empty List, 392 keys in the keychain

So, it seems the bug in keychain scripting is Certificates:

Certificate entries are ignored, but don't prevent function.
*ANY* SSL key, public or private somehow screws Keychain scripting into the
ground, and prevents it from getting a count of ANY keys in any keychain
with public or private SSL keys.

Time to amend the bug report!

john

--
"With over 50 cars already on sale here, the Japanese auto industry isn't
likely to carve out a big slice of the U.S. market for itself."

commentary in Business Week magazine, 1968
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Keychain scripting...
      • From: Gnarlodious <email@hidden>
References: 
 >Re: Keychain scripting... (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Keychain scripting...
  • Next by Date: Re: Keychain scripting...
  • Previous by thread: Re: Keychain scripting...
  • Next by thread: Re: Keychain scripting...
  • Index(es):
    • Date
    • Thread