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
510
votes
10 answers

How to convert SSH keypairs generated using PuTTYgen (Windows) into key-pairs used by ssh-agent and Keychain (Linux)

I've generated key pairs using PuTTYgen and been logging in using Pageant, so that I have to enter my pass-phrase only once when my system boots. How do I achieve this in Linux? I've heard of keychain but I hear that it uses a different key pair…
TCSGrad
  • 11,898
  • 14
  • 49
  • 70
479
votes
14 answers

This certificate has an invalid issuer Apple Push Services

I have created certificate to enable Push Services in my app, but every time I try to add certificate in my Keychain, after adding certificate it shows me following error: This certificate has an invalid issuer
Aamir
  • 16,329
  • 10
  • 59
  • 65
449
votes
33 answers

Codesign wants to access key "access" in your keychain, I put in my login password but keeps asking me

I'm trying to learn to load apps on my iPhone from Xcode. When I do I keep getting "Codesign wants to access key "access" in your keychain, I put I my login password but it keeps popping up over and over. I've tried my computer login so many…
Tim Kruger
  • 4,521
  • 2
  • 9
  • 6
282
votes
15 answers

iOS: How to store username/password within an app?

I have a login-screen in my iOS app. The username and password will be saved in the NSUserDefaults and be loaded into the login-screen again when you enter the app again (of course, NSUserDefaults are permanent). Now, the user have the possibility…
PassionateDeveloper
  • 14,558
  • 34
  • 107
  • 176
266
votes
9 answers

Delete keychain items when an app is uninstalled

I am using idandersen's scifihifi-iphone code for keychain and save password using [SFHFKeychainUtils storeUsername:@"User" andPassword:@"123" forServiceName:@"TestService" updateExisting:YES error:&error]; When I delete the…
enc
  • 3,345
  • 4
  • 21
  • 22
227
votes
21 answers

missing private key in the distribution certificate on keychain

I have the following problem which I could not find a solution for anywhere. Basically, we have a company developer account (not enterprise) and so in order to submit our app, I requested from our team lead to send me the distribution certificate…
moshikafya
  • 3,190
  • 5
  • 22
  • 27
210
votes
16 answers

Xcode 4 - "Valid signing identity not found" error on provisioning profiles on a new Macintosh install

I had a Macintosh I used to develop iPhone apps with using Xcode 4. I now have a new Macintosh with a new install of... everything. When opening Xcode projects built on the old Mac, I cannot run the app on the iPhone that was configured as a…
Oliver
  • 23,072
  • 33
  • 138
  • 230
187
votes
20 answers

Distribution certificate / private key not installed

Using Xcode 9.1, after building an iOS app, I want to archive it and upload it to the appStore for beta-testing. But I get the following issue after clicking the button Upload to the App Store... and choosing Automatically manage signing: "My Name"…
Michel
  • 10,303
  • 17
  • 82
  • 179
127
votes
4 answers

What makes a keychain item unique (in iOS)?

My question concerns keychains in iOS (iPhone, iPad, ...). I think (but am not sure) that the implementation of keychains under Mac OS X raises the same question with the same answer. iOS provides five types (classes) of keychain items. You must…
Hubert Schölnast
  • 8,341
  • 9
  • 39
  • 76
121
votes
4 answers

How to obtain Certificate Signing Request

How do I obtain a Certificate Signing Request? All I'm trying to do is get my app running on my ipod touch. This was easy as I could just go to the IOS development portal and just download one, no muss no fuss. But now they want me to create a CSR…
John Bowlinger
  • 1,561
  • 4
  • 12
  • 14
120
votes
20 answers

SecItemAdd and SecItemCopyMatching returns error code -34018 (errSecMissingEntitlement)

Sometimes when I run an application on device from Xcode I would try to access the keychain but fail due to error -34018. This doesn't match any of the documented keychain error codes and can't be consistently reproduced. (happens maybe 30% of the…
Tony
  • 36,591
  • 10
  • 48
  • 83
120
votes
13 answers

Mac OS X wants to use system keychain when compiling the project

I am asked to type in the system admin user name and password when I compile my Xcode project. The whole message is Mac OS X wants to make changes. Type an administrator's name and password to allow this. Mac OS X wants to use system…
Singh
  • 2,151
  • 3
  • 15
  • 30
105
votes
11 answers

Adding a self-signed certificate to iPhone Simulator?

I have a self-signed certificate at the endpoint of my API. I'm trying to test some things using the simulator but am getting "untrusted server certificate". I have tried to use safari on the simulator to download the .crt file, but that doesn't…
jr.
  • 4,503
  • 7
  • 44
  • 62
92
votes
4 answers

iOS KeyChain not retrieving values from background

I am currently storing the username (email) and a salted hash of the email and password in the iOS KeyChain. I'm using the ARC'ified version found here. KeychainItemWrapper *wrapper = [[KeychainItemWrapper alloc]…
Bill Burgess
  • 14,054
  • 6
  • 49
  • 86
86
votes
4 answers

Is there an equivalent to iOS's Keychain for user credentials on Android?

Is there an equivalent to iOS's Keychain on Android? My understanding of the Preferences API is that it is not encrypted. For my application it doesn't matter whether these credentials are persisted across devices (i.e. a different use-case to…
FXbeckers
  • 1,071
  • 1
  • 8
  • 10
1
2 3
99 100