keychain

“SwiftKeychainWrapper.framework code signing failed” while distributing .ipa

て烟熏妆下的殇ゞ 提交于 2019-12-11 00:48:28
问题 When I want to distribute my .ipa file, I'm getting "code signing failed" error. After I updated my Xcode version to 10.0, this problem occured. Is there anyone that had this problem before ? The distribution standard log: code = 330; description = "Failed to resolve linkage dependency SwiftKeychainWrapper x86_64 -> @rpath/libswiftUIKit.dylib: Unknown arch x86_64"; info = { }; level = WARN; }, { code = 306; description = "Failed to resolve rpath for SwiftKeychainWrapper: Could not resolve

Can DTrace find non-extractable private key from Keychain on OS X?

£可爱£侵袭症+ 提交于 2019-12-11 00:07:51
问题 I'm trying to get a hold of a private key that doesn't seem to be exportable from Keychain Access.app directly on OS X, probably because it was imported with the option to make it non-extractable. What I think might work is trying to intercept the said private key when it's used by the VPN software, the web-browser or some system software for the actual PKI authentication; is there a way to do this, perhaps with DTrace? 来源: https://stackoverflow.com/questions/25044418/can-dtrace-find-non

Where is the KeyChain data stored?

若如初见. 提交于 2019-12-10 23:15:29
问题 Several points about the keychain in iOS: Save user name and password securely; Multiples apps can share data if they share same code signing provision and bundle seed id My questions would be: Where is the keychain data stored, definitely outside the app sandbox, could we handle them ? What else usage of keychain in iOS apps ? 回答1: 1) The keychain is stored outside the sandbox in an iOS defined location. This is to prevent jailbroken devices from getting access to it. It is not visible

secItemAdd keep return -50 error in swift

心已入冬 提交于 2019-12-10 17:33:13
问题 Keep getting -50 when trying to add an item in security chain. var query = [String:AnyObject]() query[kSecClass as String] = kSecClassGenericPassword query[kSecAttrAccount as String] = "a" query[kSecValueData as String] = "b" let result = SecItemAdd(query as CFDictionary, nil); result is -50. Can not figure out why, need help.. thanks in advance. 回答1: I believe the value for the kSecValueData key needs to be an NSData, not a String or NSString. Try encoding your string to data (with e.g. UTF

Profile doesn't include certificate

我的梦境 提交于 2019-12-10 16:09:23
问题 Using Xcode 9.1, after building an iOS app, I try to archive it. But I get the following error message: Provisioning profile "MyAppProfile" doesn't include signing certificate "iPhone Developer: My Name (X1YZ2AB3CD)". What is the simplest way to solve this? 回答1: Try enabling automatic signing. It will take care these things mostly. The reason for this error is you may have chosen a developer certificate(which the provisioning profile doesn't intended to use with) for distributing/release

iOS Keychain occasionally return empty string

爷,独闯天下 提交于 2019-12-10 15:29:58
问题 I write very secure application (for Bank) and I keep the private key in the Keychain. I keep the Private key using the following code: +(void)savePrivatekey:(NSString *)Key { KeychainItemWrapper *keychain = [[KeychainItemWrapper alloc] initWithIdentifier:@"pKey" accessGroup:nil]; [keychain setObject:Key forKey:(id)kSecValueData]; [keychain release]; } and for get the private key using the following code: +(NSString *)privateKey { KeychainItemWrapper *keychain = [[KeychainItemWrapper alloc]

How to export certificate from Mac OS X to get pair of .cert and .key files ?

你。 提交于 2019-12-10 14:56:09
问题 I have on Mac 10.10.1 created certificate and I have in keychain access certificate with private key. On Windows I have to use this and I need .cert and .key file. How to export this certificate to get those two files ? I can export as .pb12 or .cert but cannot export as pair .cert and .key (private key ) 回答1: What kind of certificate do you want to export? You could try to save the certificate as *.p12 file and try one of these solutions: https://www.icts.uiowa.edu/confluence/pages/viewpage

Converting NSUserDefaults to Keychain?

蓝咒 提交于 2019-12-10 14:50:15
问题 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 other words, I want to store app prefs within the Keychain. Or am I barking up the wrong tree? 回答1: Both of the below solutions are wrappers around KeyChain API

Mac Launch Daemon unable to retrieve password from system keychain after saving it there

前提是你 提交于 2019-12-10 13:59:01
问题 We have a Launch Daemon which (necessarily, for various reasons) runs as root, and which communicates with a server component via the network. It needs to authenticate with the service, so when it first obtains the password, we save it to the system keychain. On subsequent launches, the idea is to retrieve the password from the keychain and use it to authenticate with the network service. This has been working fine, but on macOS 10.12 the existing code stopped working, and we've been entirely

Values that I Put in Keychain Can Be Saved After app is updated?

你。 提交于 2019-12-10 13:02:06
问题 I have an application in app-store. In My Application I use keychain to save some values(for example: name & surname) as crypted. If I use xCode to update my app , there is no problem about values. They are all saved in keychain as I want. But If I put new version into the app-store and updated my app with the version that is in appstore, My values are all gone :( Does iOS remove the values in keychain if app is updated ? 回答1: Note : On iPhone, Keychain rights depend on the provisioning