Questions tagged [keychain]

A keychain is an encrypted container that holds passwords for multiple applications and secure services. Apple Inc. uses keychains as password management system in Mac OS and iOS.

Keychain is Apple Inc.'s password management system in Mac OS and iOS. It was introduced with Mac OS 8.6, and has been included in all subsequent versions of Mac OS, including Mac OS X. A Keychain can contain various types of data: passwords (for Websites, FTP servers, SSH accounts, network shares, wireless networks, groupware applications, encrypted disk images), private keys, certificates, and secure notes.

In Mac OS X, keychain files are stored in ~/Library/Keychains/, /Library/Keychains/, and /Network/Library/Keychains/, and the Keychain Access GUI application is located in the Utilities folder in the Applications folder. It is free, open source software released under the terms of the APSL. The command line equivalent of Keychain Access is /usr/bin/security. The keychain file(s) stores a variety of data fields including a title, URL, notes and password. Other than Secure Notes created with Keychain Access, only the password is encrypted, with Triple DES. The contents of Secure Notes are also encrypted.

Source: Keychain

1969 questions
46
votes
6 answers

Enumerate all Keychain items in my iOS application

What's the easiest way to programmatically (from within my app) get all items stored in the keychain? It probably has something to do with SecItemCopyMatching(), but the documentation for that function is not very clear (and I failed to find a…
noamtm
  • 12,435
  • 15
  • 71
  • 107
43
votes
6 answers

"No unexpired provisioning profiles found that contain any of the keychain's signing certificates" Horror

I have seen a few other questions that addressed this topic but none like mine. Yesterday I innocently added a device to the list of devices. Question: I am under the impression that once you add a device, it will now be linked to the provisioning…
Greg Price
  • 2,556
  • 1
  • 24
  • 33
42
votes
1 answer

Diference between Certificates in "Login" and "System" for XCode

I try to found answer for this stupid question, but didn't find it. I am having the error CSSMERR_TP_NOT_TRUSTED and I am trying to fix it. My question is: What difference make put a "Certificates" in "Login" or in "System" in the "KeyChains" tab of…
Rodrigo
  • 11,909
  • 23
  • 68
  • 101
42
votes
9 answers

How to run an iOS app that causes runtime error for frameworks "code signature invalid"

Every time I try to run this application it builds OK and installs, but as soon as it runs, the application breaks and prints this error message: dyld: Library not loaded: @rpath/StandardCyborgFusion.framework/StandardCyborgFusion Referenced from:…
Aidan Rosswood
  • 1,212
  • 1
  • 10
  • 21
42
votes
1 answer

Storing In App Purchase receipts in the application Keychain

I've never implemented In App Purchase before, so I used the MKStoreKit wrapper and have a working implementation. MKStoreKit keeps all receipts in the UserDefaults .plist as a BOOL, thus it is very simple for pirates to distribute the in app…
Daddy
  • 9,045
  • 7
  • 69
  • 98
40
votes
1 answer

Xcode won't let to build for Device after denying Codesign to access Keychain

I'm new to iOS development and today I tried to check my app on my iPhone and tried to build it for the device. So when I clicked on build, it asked to type my password to let codesign to access keychain. But after few attempts, I accidentally…
Samitha Nanayakkara
  • 2,529
  • 2
  • 10
  • 23
40
votes
2 answers

iphone keychain items persist after application uninstall?

I am playing with idandersen's scifihifi-iphone code for keychain and came across the following behavior - I set the password using, say [SFHFKeychainUtils storeUsername:@"User" andPassword:@"123" forServiceName:@"TestService"…
Vladimir
  • 170,431
  • 36
  • 387
  • 313
40
votes
9 answers

Getting "A valid signing identity matching this profile could not be found in your keychain" warning

I hope to test my app on iPod Touch I created development provisioning profile. I dragged downloaded .mobileprovision file to Organizer There is a yellow triangle warned that "A valid signing identity matching this profile could not be found in your…
arachide
  • 8,006
  • 18
  • 71
  • 134
39
votes
3 answers

Will items in iOS keychain survive app uninstall and reinstall?

I am looking for documentation about the iOS keychain items. My specific question is if keychain items will survive an app uninstall and reinstall cycle. It seems to work that way since iOS 4 (or maybe even iOS 3), but I cannot find any…
Andreas Paulsson
  • 7,745
  • 3
  • 25
  • 31
38
votes
2 answers

iOS SFHFKeychainUtils failing *sometimes* with error -25308 errSecInteractionNotAllowed

I have this code getting back a password from the keychain for a given username NSString: NSError *error = nil; NSString *appName = [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString*)kCFBundleNameKey]; NSString *pw = [SFHFKeychainUtils…
Simon East
  • 2,516
  • 2
  • 18
  • 21
38
votes
3 answers

iOS Keychain Services: only specific values allowed for kSecAttrGeneric Key?

I am trying to use the KeychainWrapper class provided in this Apple sample code: https://developer.apple.com/library/content/samplecode/GenericKeychain/ In the sample app, the class has this init method that starts as: - (id)initWithIdentifier:…
Simon Goldeen
  • 9,080
  • 3
  • 36
  • 45
38
votes
5 answers

io: ios app development option greyed out

I just signed and created a certificate with keychain access, then in the developer portal I click certificates->developer->+ and when I am prompted for What type of certificate do you need? under development ios app development is greyed out. Does…
wwjdm
  • 2,568
  • 7
  • 32
  • 61
37
votes
6 answers

Is there a quick and easy way to dump the contents of a MacOS X keychain?

I'm looking for a way to dump (export) the contents of an OS X keychain into a file that I can easily process elsewhere, such as tab-delimited plaintext or something of the sort. The Keychain Access app does not offer any such functionality, and…
Niels Heidenreich
  • 1,257
  • 1
  • 9
  • 20
37
votes
3 answers

Is there any length limit of string stored in Keychain?

I want to store some userinfo as a string in Keychain on iOS, so is there any length limit of the string in Keychain? Thanks.
fannheyward
  • 18,599
  • 12
  • 71
  • 109
36
votes
4 answers

Keychain won't unlock from Jenkins script unless user logged in

I'm running a Jenkins CI server on an OS X machine. The server is running as a standard user 'john', and is started by running launchctl. One of the things this server does is build XCode projects using keys and certificates stored in a keychain…
user756365