keychain

Reuse Development C.S.R. for Distribution certificate

So, I've created a development certificate for my iPhone app, and in the process I saved a C.S.R as a CertificateSigningRequest.certSigningRequest file on the computer hard drive with Keychain Access Certificate Assistant. It seems to me that Apple asks for an exactly same file to be generated and saved onto the hard drive for requestin...

Getting error while installing the certificate.p12 file in Keychain Access's Login option

Hi i am trying to install the certificate.p12 file in Keychain Access's Login section on my mac mini. For each .p12 file it showing "This certificate was signed by an unknown authority". But when i tried to install the same .p12 file on other machine, its got install and showing "This is a valid certificate" Before installing this .p12 f...

OS X Keychains: 32 to 64 bit

I recently switched my application from 32 bit to 64 bit on Mac OS X. The only problem that I am having now is some users are complaining that their existing keychains are not being saved anymore and they cannot create new ones. Is there any reason the keychain service would stop working after such a switch? The actual code to process th...

Importing OpenSSH RSA Public / Private Key Pair into Apple's Keychain Access

As stated in the title, I would like to import a key pair into Keychain Access. What I have done: Obtaining an RSA public / private key pair by using OpenSSH What I am going to do: Importing the key pair into the "login" keychain of Keychain Access Creating a CSR with OpenSSL Send the CSR to Apple for obtaining a developer...

Multiple Secrets in One Keychain Entry

I have three secrets to store in the Mac OS keychain. Currenly I store each of these in a separate keychain entry. The drawback to this is that if my application is updated the user sees three "allow access" dialogs, one for each entry. What I'd like to do is store all three secrets in one keychain entry. One of these secrets is a us...

What is the "identity string" of my certificate (mac + codesign utility)?

I'm gonna say this right away: I have no idea what I'm doing here. I am not a mac developer. Here's the scenario: I have an installer (.pkg) that my boss wants me to sign. I have a certificate, issued by Thawte; which I've imported into the keychain program (and set it to be trusted for everything). In package maker, under the conf...

Keychain to store and read username and password

Hello! Can anyone tell me please whats the easiest way to use Keychain to store and read username and password values? Thanks! ...

iOS Keychain Security

we want to use certificates on the iPhone to authenticate for MS Exchange Sync. We are not sure how the security concept is implemented to protect this certificates. e.g. is it possible to get "full" Keychain access on the iPhone if no ScreenLock is enabled? (or with an Jailbroken iPhone). Does anybody has some links about this? ...

Using AddressBook to share information between iPhone apps

I've read that it's possible to share information between iPhone applications using the Addressbook. In fact, TextExpander Touch seems to be able to do just this by looking at their SDK how-to: http://www.freshblocks.com/tutorials/how-to-add-textexpander-touch-sdk-to-iphone-apps/ Can anyone provide a concrete example of how this is ac...

Obtaining admin privileges to delete files using rm from a Cocoa app

I am making a small app that deletes log files. I am using an NSTask instance which runs rm and srm (secure rm) to delete files. I want to be able to delete files in: /Library/Logs ~/Library/Logs The issue is that the user account does not have permissions to access some files in the system library folder, such as the Adobe logs sub...

Problem using KeychainItemWrapper

I use the following code to retrieve the login credentials from the iPhone keychain: KeychainItemWrapper *wrapper = [[KeychainItemWrapper alloc] initWithIdentifier:@"Test" accessGroup:nil]; NSString *username = [wrapper objectForKey:(id)kSecAttrAccount]; NSString *password = [wrapper objectForKey:(id)kSecValueData]; [wrapper release]; ...

PHP Native OS 'Remember Me'

Sorry if the title was misleading. I want to know how to trigger the default OS password keeper when a user successfully logs in. Example: I use Chrome in OSX, whenever I login somewhere I get the option for Chrome to save my login info, which stores the info in my keychain. This is not a question about a 'remember me' checkbox for the...

EMKeyChain Problems

I want to store the FTP Password in a Keychain rather than in the NSUserDefaults. So I used a wrapper called EMKeyChain to store the problem. The problem being is that it won't load the password when the Preference Window is loaded: Note: FTPPassword is a IBOutlet for NSTextField in PreferenceController.h -(void)windowDidLoad { //Check...

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" updateExisting:YES error:&error]; Then delete test application from device and install it a...

Keychain Password Pitfalls

Are there any known pitfalls to avoid when storing user passwords in the Keychain? I am planning to give users the ability to require a password in order to access my iPad app. I have basic read and write of a string to the Keychain working. I just want to make sure that I don't allow them to get into a scenario that they lock themselves...

keychain problem.

i am uploading a application on appstore,when i upload the build in Applicationloader, i face an error given as below. please give me the detail to solve this problem. ERROR -- "Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate." ...

help with a useful implementation of keychain on an iphone app

Users have requested a "lock" on my iphone app, which makes good sense as it contains private information. I believe encryption of the data goes above and beyond what people expect on a phone, so my goal is simply to prevent unintended access to the app. My plan is to use keychain to store the password using my app name as the ServiceNa...

Is it possible to distribute a populated keychain with an application

I am working on an application that uses a private web service. We currently use a bundled client certificate to enable 2-way SSL connectivity however the password for the certificate is in the code and it is a concern that this could be de-compiled and used with the (trivially)extracted certificate file for nefarious purposes. Is ther...

How do I add authorizations to code sign an app from new keychain without any human interaction

I'm trying to automate the process of building iphone apps with a particular certificate. So imagine if different users uploaded their cert into the system and it was immediately available to code sign against. I want to do this without any interaction. I also don't want to clutter up the system or logon keychain with different user cert...