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
29
votes
7 answers

error: git-credential-osxkeychain died of signal 11

I have installed github version 0.8.4, but when i try to fetch something from git, it is showing this message. Fetching all tracking branches from Queue-iOS completed successfully. command: git fetch Queue-iOS error: git-credential-osxkeychain…
Suraj K Thomas
  • 5,773
  • 4
  • 52
  • 64
27
votes
2 answers

Is it possible to update a Keychain item's kSecAttrAccessible value?

Is it possible to update the value of the attribute kSecAttrAccessible of existing items in the Keychain? It seems that it cannot be changed after the item was added to the Keychain. The following steps back up my assumption. Add a new item to the…
Manuel Binna
  • 1,225
  • 2
  • 14
  • 23
27
votes
5 answers

Why does Xcode auto-install a (duplicate and expired) certificate in the keychain?

Possible Duplicate: xCode 4 -reinstalls keychain certs that I delete The question says it all in a nutshell. When building a project in Xcode, I receive the error message from the Check dependencies step: CodeSign error: Certificate identity…
Tom Pace
  • 2,347
  • 1
  • 24
  • 32
26
votes
3 answers

Authentication to GitHub using personal access token on macOS?

After creating a personal access token, how do you unset any existing authentication and use the token in the macOS terminal? I tried running osxkeychain command git config --global credential.helper osxkeychain but it doesn't change anything. I…
stevec
  • 41,291
  • 27
  • 223
  • 311
26
votes
5 answers

Share between an iOS extension and its containing app with the keychain?

I understand I can share data between my share extension and its containing app by enabling app groups and using NSUserDefaults (see Sharing data between an iOS 8 share extension and main app). However, the data I am storing is sensitive, so I hoped…
Jim Biancolo
  • 804
  • 2
  • 9
  • 14
26
votes
1 answer

How do I use Apple Keychain?

I am using trying to use scifihifi-iphone (from Github) to store and retrieve usernames and passwords. However, when I add the class SFHFKeychainUtils I get the following errors: "_kSecAttrAccount", referenced from: …
Jason
  • 17,276
  • 23
  • 73
  • 114
26
votes
3 answers

Importing private key into Keychain is not working as expected in iphone

I need to sign requests before sending it to backend server. However the private key is given to me. So I need to import it and then use it to sign. I am able to import and sign in but that data is different from what I get by signing using openssl.…
Kishore Bulusu
  • 283
  • 4
  • 6
25
votes
2 answers

iOS 8 notification action: "Access to item attempted while keychain is locked" error when accessing keychain in "didFinishLaunchingWithOptions"

I am observing a keychain error in the device console thrown by SecItemCopyMatching when acting on an iOS 8 push notification on a locked phone. The detailed repro steps are as follows: Uninstall all previous versions of the app. Build an Appstore…
SeaJelly
  • 1,738
  • 1
  • 15
  • 30
24
votes
1 answer

iOS Simulator - View content of Keychain

I am storing username and password of my application in iOS keychain. I am developing the application using Appcelerator and am using the following module. Through the API, I can perform all the CRUD operations ob both device and simulator. After…
Soumya
  • 1,350
  • 3
  • 19
  • 34
24
votes
1 answer

Why are there so many iMessage Signing Keys in the private key section of Keychain?

I tried to clean my keychain because there are many certificates in it. When I opened the private key section, I found there are too many of the same key. Can I delete them? I don't know what they are for. Help me please!
Sarah
  • 243
  • 1
  • 2
  • 8
24
votes
1 answer

I lost my public key. Can I recover it from a private key?

I created a key pair + signed certificate for iOS/OSX development. Somewhere along the way, I lost the public key that goes with my private key. Maybe it's because Keychain Access doesn't group the private and public keys together, like it does with…
Paul Du Bois
  • 2,097
  • 1
  • 20
  • 31
24
votes
3 answers

Keychain group access to share data between my existing applications

I have many iOS applications live on AppStore. Now for next version of apps, I want to keep a piece of data for every application to share in KeyChain. As far as I know I need to provide same Keychain access group in Apple's KeychainItemWrapper…
msk
  • 8,885
  • 6
  • 41
  • 72
23
votes
3 answers

Difference between Keychain and NSUserDefault?

I am new to objective C, I have created one application in that I have used both NSUserDefault and Keychain to store my user name and password. But I cant differentiate both. Please help to differentiate the both. Thank you.
Ganapathy
  • 4,594
  • 5
  • 23
  • 41
22
votes
2 answers

Intermittent & Temporary iOS Keychain Failure

We have an app that heavily relies on being able to access a user's session token using iOS's Keychain. When our app opens, the first thing that's checked is whether the token is available - and if not, we show the user a login screen. We do not use…
GPRyan
  • 435
  • 4
  • 9
21
votes
3 answers

iOS codesigning specs

I want to create a tool for codesigning iOS apps on a linux server remotely. I know codesign is oss but relies heavily on the keychain and is not as portable. I know Adobe has a codesign utility for win and mac within flash that takes the…
drunknbass
  • 1,662
  • 1
  • 13
  • 19