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
21
votes
2 answers

How do I fix "Missing Private Key" for xcode apple provisioning?

On a new mac, I installed xcode and needed to set up provisioning for a hello-world project to deploy to my iPad. NOTE: I am using the new FREE provisioning (do not have a paid Apple account) I went to Preferences/Account signed in to my Apple…
dapug
  • 1,781
  • 4
  • 22
  • 28
21
votes
2 answers

Invalid CSR, Invalid Certificate error for generating Apple Distribution Certificate

I have been generating Distribution certificates on Apple developer portal from the last 4 years but this time I am facing an error while uploading .certSigningRequest file. I have created it like the way I always created i.e. Keychain Access ->…
ihammys
  • 812
  • 7
  • 15
21
votes
5 answers

Adding Items to and Querying the iOS Keychain with Swift

I'm having trouble converting all of the Objective C code samples that are available for adding data and querying data from the iOS Keychain into Swift. I'm trying to do a basic storage of a string (an access token) and reading it back. I've had a…
matthewpalmer
  • 2,619
  • 3
  • 25
  • 27
20
votes
7 answers

Store NSDictionary in keychain

It is possible to store a NSDictionary in the iPhone keychain, using KeychainItemWrapper (or without)? If it's not possible, have you another solution?
Michaël
  • 6,676
  • 3
  • 36
  • 55
20
votes
1 answer

Can't import Code-signing Public or Private keys using Keychain access (Mac OS X Mavericks)

In an attempt to build an iOS project (in XCode), I need to import my colleague's public and private keys for the code signing identity, but I am unable to do so because I get an error in Keychain Access that says "An error has occurred. Unable to…
Jason FB
  • 4,752
  • 3
  • 38
  • 69
20
votes
7 answers

IPhone app with SSL client certs

I'm building an iphone app that needs to access a web service over https using client certificates. If I put the client cert (in pkcs12 format) in the app bundle, I'm able to load it into the app and make the https call (largely thanks to…
Pavel Georgiev
  • 221
  • 1
  • 2
  • 4
20
votes
2 answers

Adding private key into iOS Keychain

I am trying to add a private key into the iOS keychain. The certificate (public key) works fine but the private key refuses... I am totally confused why the following code does not work. First I am checking if the current key (=key in case of that…
Chris
  • 3,057
  • 5
  • 37
  • 63
19
votes
2 answers

iOS: Pre install SSL certificate in keychain - programmatically

I want to install/save a certificate in the keychain before the user visits the site. I have a HTTPS server, and my app authenticates the user before they go to https://mysite. Is there a way that I can install/save the certificate via a POST…
Deam
  • 1,007
  • 2
  • 17
  • 36
19
votes
2 answers

Determine if Touch ID-Protected Keychain Item Exists?

Is there a way to determine if an item (password, token, etc.) has been set in the iOS keychain using Touch ID access control without prompting the user for Touch ID? We have a need to determine if the credential has already been saved to the…
Shadowman
  • 11,150
  • 19
  • 100
  • 198
19
votes
4 answers

Is there an iPhone-like Keychain in Android?

I'm looking for something like the Keychain on the iPhone, but for Android development. Something that gives me the capability to save small key-value pairs that are persistent and unchanged even if the user reinstalls the application. Is there…
Janusz
  • 187,060
  • 113
  • 301
  • 369
18
votes
2 answers

Storing email in keychain impossible (KeychainItemWrapper)

I'm using the ARCified version of KeychainItemWrapper available at github, and I can't get it to store both email and password. KeychainItemWrapper *keychainItem = [[KeychainItemWrapper alloc] initWithIdentifier:@"myApp"…
Arnaud
  • 17,268
  • 9
  • 65
  • 83
18
votes
3 answers

macOS wants to make changes.Enter an administrator’s name and password to allow this

I’m running a script to generate an ipa file from Xcode. While invoking the xcodebuild a prompt is displayed saying “macOS wants to make changes.Enter an administrator’s name and password to allow this.” If the credentials are entered the ipa file…
18
votes
3 answers

How to stop "keychain access" permission dialog on MacOS when debugging Flutter app on Visual Studio Code?

I had just moved from Android Studio to Visual Studio Code. I'm using Firebase in my app which I debug by running it on MacOS. Every time I do "Start Debugging" on VS code, I get this dialog which I learned to hate by this time. Even if I type my…
Gintas_
  • 4,940
  • 12
  • 44
  • 87
18
votes
3 answers

Multiple Certificates/Provisioning Profiles in one Xcode organizer?

There are several similar questions here, but none could answer my basic question: Is it possible to have two separate developer certificates in the keychain and two corresponding distribution profiles in Organizer? I have my own (working) developer…
marimba
  • 3,116
  • 5
  • 26
  • 29
18
votes
1 answer

How to sync keychain over iCloud

I wan't to store sensitive data for my app in the keychain. I'd also like this to sync over devices, using iCloud. According to Apple this is possible: Does iCloud Keychain work with third-party apps? Yes. Developers can update their apps to work…
johan
  • 6,578
  • 6
  • 46
  • 68