keychain

Keychain Services API fails with errSecNotAvailable in iphonesimulator 6.0

谁说胖子不能爱 提交于 2019-12-21 17:26:51
问题 Calls to the the Keychain Services fail with errSecNotAvailable when executing a target using the command line tools and the iphone simulator is set to Hardware version 6.0 (10A403). If I change the simulator version to other previous version (4.3, 5.0, 5.1) and re-execute using the same command line script the calls succeed. I'm running latest XCode 4.5 and the command line tools were downloaded from within XCode. To reproduce this error just do the following: Setup an ios library project

iOS 11 password autofill doesn't save password to the Keychain

岁酱吖の 提交于 2019-12-21 12:18:38
问题 I'm using Password Autofill feature in the iOS app. I've set the needed textContentType properties to username and password respectively. Also, I've enabled iCloud Keychain in the iOS settings. The bar appears, I'm able to fill in the login form with the credentials from other apps. However, I'm unable to save the credentials I enter. Is it possible to Save credentials to the keychain without associating the app with the website , like shown in the WWDC session? 回答1: No, It's not possible to

RSA Encryption on iPhone

寵の児 提交于 2019-12-21 06:56:01
问题 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 API then? My current idea is to construct a SecKeyRef struct from my public key only and use the API. I don't know how the struct is declared, though. Does

iOS Release IPA using someone else's .p12 & .mobileprovision

纵饮孤独 提交于 2019-12-21 05:48:12
问题 I'm trying to build & release an IPA and sign it with someone else's (The customer) .p12 file and a .mobileprovision. What I do not have is their apple developer account user and password combination (I only have my own user and password which are not related). How can I build and release it using their certificate which I mentioned before (enterprise distribution)? I'm using Xcode Version 5.1.1 (5B1008) I have imported the p12 file, and it appears to be fine and visible in keychain. In Xcode

Two iOS Developer Licenses on one Mac

北城余情 提交于 2019-12-21 05:11:21
问题 On my Mac, I have installed the required certificates and keys to develop and distribute my own personally developed iOS Apps via my own iOS Developers' License. However, my client would like me to use his License to distribute (Ad-Hoc) betas and eventually distribute the app to the app store. Please can you tell me how I can install his developer license on my Mac without affecting my personal developer certificates and keys already installed on my Mac? Furthermore, is this even possible?

iOS save multiple passwords in keychain

牧云@^-^@ 提交于 2019-12-21 05:00:16
问题 I want to save two passwords (one app pin and one backend pin) in my keychain and am wondering how this should work. I am using the KeychainItemWrapper with to different identifiers. KeychainItemWrapper *kcw1 = [[KeychainItemWrapper alloc] initWithIdentifier:id1 accessGroup:nil]; KeychainItemWrapper *kcw2 = [[KeychainItemWrapper alloc] initWithIdentifier:id2 accessGroup:nil]; and I am using either one to save and retrive the app or the backend pin. I use : [self.kcw1 setObject:aVerifyCode

Generating certificate signing request in Keychain Access: which private key is used?

时光怂恿深爱的人放手 提交于 2019-12-21 04:12:49
问题 I am wondering which private key Keychain Access in Mac OS X (Snow Leopard, now Lion) uses. Whenever I create a CSR using that app, it does not even ask for a private key to use. So which one does it use then? I could imagine that it used the selected one, if you've selected one in your certificate list. But generating the request even works when nothing is selected at all or, making sure it's not an "invisible" selection, if the item that's selected is not a private key. Does anyone know?

How do I programmatically import a certificate into my iOS app's keychain and pass the identity to a server when needed?

左心房为你撑大大i 提交于 2019-12-20 10:33:04
问题 I am working on an iOS5 application that will facilitate mobile payments between two users. As part of the payment process, the sender and the recipient need to communicate with a server. The server requires that both parties present their identities when an authentication challenge is initiated upon connection. Currently, I have hard-coded the certificate process by utilizing the following two methods in my code: NSURLConnection Delegate didReceiveAuthenticationChallenge (void)connection:

IPhone app with SSL client certs

≡放荡痞女 提交于 2019-12-20 08:19:57
问题 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 stackoverflow.com). However, I need a way to distribute the app without any certs and leave it to the user to provide his own certificate. I thought I would just do that by instructing the user to import the certificate in iphone's profiles (settings-

Keychain won't unlock from Jenkins script unless user logged in

梦想与她 提交于 2019-12-20 08:10:18
问题 I'm running a Jenkins CI server on an OS X machine. The server is running as a standard user 'john', and is started by running launchctl. One of the things this server does is build XCode projects using keys and certificates stored in a keychain 'xcode.keychain': Jenkins (which is running under the user 'john' according to activity monitor) calls these commands from a script when the user presses a button on the web interface. security default-keychain -s /Users/john/Library/Keychains/xcode