keychain

Mac Code Signing: Bypass the Keychain Access private key prompt from Terminal

蓝咒 提交于 2019-12-04 01:46:37
I'm working on an app in Mac OS X Mountain Lion that needs to access the private key of some of my certificates within the Keychain Access. Since this app is going to run on a server, I need to avoid the pop up dialog that requires the user to allow the app to access the private key: I know that by clicking "Always Allow" the dialog won't popup anymore for that private key, the problem is that I will be working with different keys. Thanks in advance, Mikywan. The only way I found to solve this is by setting up the Private Key in the Keychain Access to "Allow all applications to access this

iOS Simulator - View content of Keychain

依然范特西╮ 提交于 2019-12-03 18:44:05
问题 I am storing username and password of my application in iOS keychain. I am developing the application using Appcelerator and am using the following module. Through the API, I can perform all the CRUD operations ob both device and simulator. After reading few blogs and topics on penetration testing for keychain, I came to know the keychain information is stored on a SQL database. My objective is to find this particular database and open to read its content. I want to see that the information

Importing an SSL cert under the iPhone SDK

六月ゝ 毕业季﹏ 提交于 2019-12-03 18:32:28
问题 My app connects to the Schwab OFX server using NSURLConnection . Unfortunately the server uses a very recent intermediate certificate that is trusted on the Mac desktop but not yet the iPhone. (Try the URL—you'll get a cert error on iPhone.) There's no easy way to tell NSURLConnection to ignore an invalid cert that I know of. Thus I'm trying to import the cert into the Keychain manually and set its trust level but I've hit a block. I call SecCertificateCreateWithData successfully to import

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

╄→гoц情女王★ 提交于 2019-12-03 17:13:05
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, I have set the correct bundle id, and under "Code Signing"->"Release" I have chosen their imported

iOS keychain: SecItemUpdate returns -50 (paramErr) when updating kSecAttrAccessible

穿精又带淫゛_ 提交于 2019-12-03 17:03:02
I need to update the kSecAttrAccessible of a keychain entry. I don't need to update the actual data, just the accessibility attribute. First I try to find the item to make sure that my query dictionary is good: sanityCheck = SecItemCopyMatching((__bridge CFDictionaryRef)(queryPrivateKey), (void *)&privateKeyRef); This line successfully finds me the item I am looking for (return code is 0). I then update the kSecAttrAccessible attribute using the same query: if (sanityCheck == noErr && privateKeyRef != nil) { // found it, update accessibility NSMutableDictionary *updatedAttributes = [

SecItemAdd creating two identities

眉间皱痕 提交于 2019-12-03 16:46:49
I'm developing an application for IPhone that needs a certificate to call some services, so I'm adding a certificate to my keychain doing this: SecCertificateRef cert = SecCertificateCreateWithData(NULL, (__bridge CFDataRef) certificadoData); NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] init]; [dictionary setObject:(__bridge id)kSecClassCertificate forKey:(__bridge id)kSecClass]; [dictionary setObject:(__bridge id)(cert) forKey:(__bridge id<NSCopying>)(kSecValueRef)]; OSStatus status = SecItemAdd((__bridge CFDictionaryRef)dictionary, NULL); When I list all the

Multiple codesigning identities (i.e. certificate and private key pairs) matching were found

主宰稳场 提交于 2019-12-03 12:17:27
Code Sign error: Multiple matching codesigning identities found: Multiple codesigning identities (i.e. certificate and private key pairs) matching “iPhone Developer: Coders (4B4R89J5KK43GU33E64I4347VZ)” were found CodeSign error: code signing is required for product type 'Unit Test Bundle' in SDK 'iOS 8.0' I am unable to test the app on the device. I also imported the .developerprofile file from my teammate, and was able to upload the app to app store, but cannot test app on device. In keychain all the certificates are valid. I tried to deleting iOS Provisioning Profiles . I also refreshed my

Using keychain to store username and password in xcode 4

白昼怎懂夜的黑 提交于 2019-12-03 11:15:20
问题 I don't want to use NSUserDefaults as I have been told it's not a good way to save a username and password. So I was going to use a Keychain, but I have never used them before. Can some one please just a give a quick example of one or point me in the direction of an example ? Thanks. 回答1: I Use the open source SSKeychain wrapper around the the C api used by the keychain. It's convenient, easy to use, and works on Mac OS and iOS. 回答2: This is the best I have found till date... It five a very

Xcode does not see my developer certificate in Code Signing Identity

一曲冷凌霜 提交于 2019-12-03 11:08:05
I renewed my IOS Developer Certificate, i deleted old ones from keychains and clicked on my certificate. Everything looks normal in keychains, i have distribution,developer, WWDC certificates in there.Every profile look valid with green marks Under Teams and Provisioning Profiles section in Organizer but in Xcode under Code Signing Identity there is no profile currently match developer profile under Automatic Profile Selector(Recommended). What can i do about it? thanks in advance. First of all check in Xcode -> Preferences -> Account that you have your new profile in the list, refresh the

io: ios app development option greyed out

為{幸葍}努か 提交于 2019-12-03 10:29:50
问题 I just signed and created a certificate with keychain access, then in the developer portal I click certificates->developer->+ and when I am prompted for What type of certificate do you need? under development ios app development is greyed out. Does any one know why this is? Do I need to revoke a certificate? 回答1: You can only request one development certificate per user. Either log in as the user you want to request a certificate for, or remove the existing certificate(s) for the user you are