Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does the SecKeychain API support iCloud Keychain synchronisation?

According to Apple's documentation, I can create and access synchronised passwords from the OS X keychain using the so-called SecItem API when providing an additional kSecAttrSynchronizable attribute. The corresponding calls are SecItemCopyMatching or SecItemAdd.

Is it possible to read / write synchronised items as well in a legacy application that accesses the keychain via the SecKeychain API, for instance, using SecKeychainSearchCreateFromAttributes?

I have tried to specify the kSecAttrSynchronizable attribute in the call of SecKeychainSearchCreateFromAttributes, but got an error stating that there is no matching attribute.

Is it possible at all to access the iCloud keychain items via the SecKeychain API? And if, how must I specify the kSecAttrSynchronizable attribute in queries?

like image 575
SKempken Avatar asked Oct 02 '22 23:10

SKempken


1 Answers

I posted the same question on the Apple developer forums, the straight answer I got was: "no".

like image 115
SKempken Avatar answered Oct 17 '22 21:10

SKempken