keychain

Problems Executing iPhone "GenericKeychain" Example

I can't get apple's "GenericKeychain" example to run. I have replaced all 5 occurrences, as mentioned in the readme file, of "YOUR_APP_ID_HERE.com.yourcompany" with my own string: se.[company name].[project name].demo. The compilation goes fine but when trying to run it on the phone, an error saying "The executable was signed with invali...

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 possibility to save small key-value pairs, that are persistent and unchanged even if the user reinstalls the application. Is there something like that? Can I use the standard preferences that way? I would like to achieve...

RSA Encryption on iPhone

According the discussion on http://forums.macrumors.com/showthread.php?t=551476 the code seen below would do for RSA encryption. The datatype of the key ("public") is SecKeyRef. I will not be using the keychain, though, as I'm only interested in encryption where the key is public and is no secret. Is it even possible to use the crypto AP...

What's the keychain service in iPhone?

What's the keychain service (kSecAttrService) in iPhone? I haven't found a concrete definition of "service" in the docs. Is it just a category for keychain items inside my app? Does the value matter other than categorizing items inside my app? Thanks. ...

iPhone OSStatus -25308 or errSecInteractionNotAllowed SFHFKeychainUtils

I'm trying to access my iPhone's device keychain. I want to access in order to create a simple user-password value intended for a log in function. This is the code I'm using from SFHFKeychainUtils NSArray *keys = [[[NSArray alloc] initWithObjects: (NSString *) kSecClass, kSecAttrService, kSecAttrLabel, kSecAtt...

iPhone expired dev certs - public/private key pair issue

My dev 'license' expired last week, and with it my dev certs. I re-upped my license, but my keys are still expired. I tried to create a new signing certificate via keychain, etc. but it seems my private key is not enough, it needs my public key to do so. I understand that the public key is stored in the provisioning certificate. The ...

:-( A valid signing identity matching this profile could not be found in your keychain

Hello everyone 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 keychain" The others distribution provisioning profiles have no any p...

Is the Keychain suitable for storing general data, such as strings?

The Keychain seems to be used a lot for usernames and passwords, but is it a good idea to use it for other sensitive stuff (bank details, ID numbers etc), but with no password? What kind of encryption does the keychain use? The scenario I'm concerned about is a thief acquiring an iPhone (which is screen-locked) and being able to access t...

Why does Keychain Services return the wrong keychain content?

I've been trying to use persistent keychain references in an iPhone application. I found that if I created two different keychain items, I would get a different persistent reference each time (they look like 'genp.......1', 'genp.......2', …). However, attempts to look up the items by persistent reference always returned the content of t...

iphone - data signing using NSData of the private key

Hi I am working on a e-banking iphone application. I am using WSS with XML-Signature to sign the requests to the customer's SOAP server. Since the iPhone device can not be trusted (due to jail-breaking), the customer requirement is to manually encrypt the RSA key pair (using AES128) before storing the keys into keychain. From what I ...

Can I access the keychain on the iPhone with MonoTouch?

Hello, I have recently started to develop applications for iPhone with MonoTouch and have to store user names and passwords on the phone. I want to use the keychain for this but can't find anything in the MonoTouch documentation about it. Is it possible to use it directly with MonoTouch or will I have to write some C++/C/Objective-C code...

Using SecKeyRawSign on the iPhone

I'm trying to sign some data using SecKeyRawSign but I keep getting a -4 errSecUnimplemented. That seems strange since the documentation states that it is available in iPhone OS2.0 and later. Has anyone been able to use this function? If so, are there any tricks involved? ~Nate ...

Converting NSUserDefaults to Keychain?

So, NSUserDefaults is quite easy to use. But apparently, it is not too secure - there is no encryption. And of course the client wants the app prefs to be secure because it contains sensitive data. But the Keychain is secure, though hard to code (apparently). So is there a way to easily convert NSUserDefaults code to Keychain code? In o...

Purge iPhone Keychain

Is there a way I can purge the keychain for my iphone app? Either a purge command or a listing of all keys so I can delete them myself. ...

How to programmatically allow access to the KeyChain for my application?

Need to avoid the conformation dialog. ...

Programmatically created AirPort connection persistence

I have a Mac software client that sets up a Mac for a new internet connection via a DSL modem. Some devices have a WiFi access point and so the software sets up the user's Mac so it can connect to it wirelessly as well. This all works fine on Mac OS X 10.4.x to 10.6.x (the latter via CoreWLAN framework now). Once. The problem is that t...

Unable to create Apple Developer certificate request using keychain access tool

I'm creating a new CSR (Certificate Signing Request) using the Keychain Access tool: Certificate Assistant -> Request a certificate from a certificate authority... In the certificate information I fill in my email address and name, selecting the "Save to disk" option. I save the CSR to the desktop The wizard completes successfully, but...

how to associate private key with a certificate in keychain

I just downloaded iphone sdk 4. when I try to install on the device I get "Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain" I have gone through the process of creating a provisioning profile and cert through iphone Development Provisioning Assistan...

error importing certificate to keychain Access, Error: 100013

I am trying to provision my iphone for development; I followed all the steps the developer portal to adding and making the keychains and whatnot, but after trying double click the certificate, as it says in the developer portal, keychain access gives me an error: An error occurred. Unable to import “iPhone Developer: Kevin Mendoza (RT5V...

Store Admin Password in OSX Keychain For Automating Certain Processes?

I have a whole series of commands that I need to run on login, many of which require root privileges. So, to save a few steps I put them all into one apple script so I wouldn't have to open the terminal. But still, I'd like to be able to do this without entering my password at all (I like to boot my machine early AM while I'm still sle...