Re: Exporting a private key with SecKeychainItemExport

2010-07-06 Thread Jens Alfke
On Jul 6, 2010, at 2:38 PM, Brian Marick wrote: > I'm trying to export the private key part of a a Keychain identity. I > invariably get status -25260, > "Passphrase is required for import/export." That happens in the below whether > or not I give kSecKeySecurePassphrase to have the user asked

Re: Exporting a private key with SecKeychainItemExport

2010-07-06 Thread Brian Marick
Thanks to Greg Guerin, I found out about security(1). I notice that it seems to have the same issue: $ security export -k "my.keychain" -t privKeys security: SecKeychainItemExport: Passphrase is required for import/export. $ security export -k "my.keychain" -t privKeys -P "sesses" security: SecKe

Exporting a private key with SecKeychainItemExport

2010-07-06 Thread Brian Marick
I'm trying to export the private key part of a a Keychain identity. I invariably get status -25260, "Passphrase is required for import/export." That happens in the below whether or not I give kSecKeySecurePassphrase to have the user asked for the password or supply it myself. CFDataRef expo