keychain

Having issue with allowing codesign to use my keychain

泄露秘密 提交于 2019-11-30 20:55:51
I am using El Capitan and Xcode 7.1 , I am trying to build and archive my application to upload to app store . After compiling this alert pops up : but Always Allow and Allow buttons do not work at all ,but Deny cancels the alert! how should I fix this issue ? I am using new iMac and transferred all data from my older mac to this new one . This issue even happens with Safari , when a website wants to access password from keychain . This is console log : SecurityAgent[1476]: Ignoring user action since the dialog has received events from an untrusted source I have looked into this question but I

How to sync keychain over iCloud

孤者浪人 提交于 2019-11-30 20:17:05
I wan't to store sensitive data for my app in the keychain. I'd also like this to sync over devices, using iCloud. According to Apple this is possible: Does iCloud Keychain work with third-party apps? Yes. Developers can update their apps to work with iCloud Keychain. Passwords saved by those apps are kept up to date on all devices that use the app and are using iOS 7.0.3 or later or OS X Mavericks v10.9 or later. However, I can't find any documentation about what is needed by the app. Will all content of the keychain be synced if the user has enabled iCloud Keychain? You need to set the

Read from keychain results in errSecItemNotFound 25300

佐手、 提交于 2019-11-30 19:30:37
I store username & password using keychain, sometimes when I tried to get the password of the username, it told me errSecItemNotFound . I keep that the password is always existed in keychain, so why it is not found? Thanks. Tony: that error is simply OSStatus error -34018 - client has neither application-identifier nor keychain-access-groups entitlements. This could be happening as a result from using a nonstandard app signing method or some other problem with your entitlements. Make sure you're building simply out of Xcode and not using alternate signing methods unless you completely

Alamofire Error Domain=NSURLErrorDomain Code=-999 “cancelled”

醉酒当歌 提交于 2019-11-30 17:08:17
问题 I already have successfully got keychain for my token and passing it to AccessTokenAdapter class shown below. http127.0.0.1:8000/api2/projects/?format=json is passed as projectsURL. class AccessTokenAdapter: RequestAdapter { private let accessToken: String init(accessToken: String) { self.accessToken = accessToken } func adapt(_ urlRequest: URLRequest) throws -> URLRequest { var urlRequest = urlRequest // print("JWT \(accessToken)") urlRequest.setValue("JWT \(accessToken)", forHTTPHeaderField

Having issue with allowing codesign to use my keychain

一世执手 提交于 2019-11-30 17:01:56
问题 I am using El Capitan and Xcode 7.1 , I am trying to build and archive my application to upload to app store . After compiling this alert pops up : but Always Allow and Allow buttons do not work at all ,but Deny cancels the alert! how should I fix this issue ? I am using new iMac and transferred all data from my older mac to this new one . This issue even happens with Safari , when a website wants to access password from keychain . This is console log : SecurityAgent[1476]: Ignoring user

Reset keychain on the device

旧城冷巷雨未停 提交于 2019-11-30 16:47:27
I'm testing login flow (using KeychainItemWrapper ) inside my app on a device. How do I reset/delete keychain for my app? On the Simulator, I do it by clicking on iOS Simulator -> Reset Content and Settings... . Will Keychain items are in iOS sandbox, users don't have access to remove unwanted keychain item. These are accessible via API's only. KeychainItemWrapper *keychainItem = [[KeychainItemWrapper alloc] initWithIdentifier:[[NSBundle mainBundle] bundleIdentifier] accessGroup:nil]; //or how you access your keychain [keychainItem resetKeychainItem]; or you can reset your device >> from the

Keychain - Secure Data Storage

醉酒当歌 提交于 2019-11-30 14:18:07
问题 I am developing an application with keychain implementation . i am able to create & Save data into keychain . I am using the Keychain Wrapper classes provided By Apple. According to requirement , I have to implement best possible Security in the KeyChain (The security team pointed out lapses , such as it's accessibility on Jail-broken devices). Could Someone give me direction? 回答1: I had also Implemented keychain in application long Back using the same Wrapper you cited , but , of course with

Generating an OpenSSL Certificate Signing Request in iOS with Keychain stored keys

三世轮回 提交于 2019-11-30 10:52:07
问题 I'm trying to generate a CSR in iOS. Since apparently the Apple security framework for iOS doesn't include methods for CSR generation I had to compile the OpenSSL source code for my project. Now I want to know how to use these methods with the keys I've generated in the Keychain previously. That is, I need to convert SecKeyRef type into OpenSSL types like EVP_PKEY. That will allow me to call the OpenSSL method X509_REQ_set_pubkey. Does anyone know a way to achieve this? 回答1: Found the

Store an encryption key in Keychain while application installation process

為{幸葍}努か 提交于 2019-11-30 10:30:06
I need my application to use client's phone-number to generate unique ID for my web-service. Of course a phone-number is unique, but it must be secured. So it can be implemented with symmetric encryption (asymmetric will be later, because leak of resources), but I do not know where to store a encryption-key. 1. I do not know why, but seems bad to store a key as a static field in code. May be because it's too easy to read it from here even not running an application. 2. It seems better to store a key in Keychain and get it from here by request. But to avoid #1 it's necessary to install a key to

Keychain - Secure Data Storage

三世轮回 提交于 2019-11-30 10:12:52
I am developing an application with keychain implementation . i am able to create & Save data into keychain . I am using the Keychain Wrapper classes provided By Apple. According to requirement , I have to implement best possible Security in the KeyChain (The security team pointed out lapses , such as it's accessibility on Jail-broken devices). Could Someone give me direction? I had also Implemented keychain in application long Back using the same Wrapper you cited , but , of course with a lot of modifications. Basically Keychain is quite secure .According to Apple , it's an encrypted