Questions tagged [keychain]
A keychain is an encrypted container that holds passwords for multiple applications and secure services. Apple Inc. uses keychains as password management system in Mac OS and iOS.
1,966
questions
1
vote
0
answers
31
views
MacOS command line xcrun gives 2 identical code signing identities
On MacOS Sonoma (with XCode 15.0.1 installed) when I run this code-signing command in the terminal I get 2 exactly identical entries:
xcrun security find-identity -v -p codesigning
This causes ...
-2
votes
0
answers
54
views
+50
How to accept Touch ID on macOS without triggering a Prompt
Is there a way to accept Touch ID, without triggering the default MacOS Touch ID prompt? Or is there a way to heavily customize the default Touch ID prompt?
I have seen 1Password do it, so it is ...
0
votes
0
answers
44
views
Save data into keychain using Shell Script
I am trying to save some static data into keychain using ShellScript. But when I try fetch that data via native swift code it does not provided the data. My code is as follow:
ShellScript:
...
0
votes
0
answers
30
views
migrate to flutter, access keychain
I'm trying to convert an app developed with iOS native to Flutter. But I don't want to lose the data stored in the keychain. After switching to Flutter, how do I access the values I saved in keychain ...
0
votes
0
answers
68
views
Flutter error: Target release_unpack_ios failed: Exception: Failed to codesign
I upgraded my Macbook OS with Sonoma OS, and tried building my flutter app for ios. I'm getting an error that the app was unable to sign my app with codesign.
Error: Target release_unpack_ios failed: ...
0
votes
0
answers
33
views
Can is share Keychain items ios app and watch app
I am doing a watch app with the iOS companion app, and I need to share access tokens stored in key chains on the iOS app. Is this something that can be done?
I am using https://github.com/square/Valet,...
0
votes
0
answers
87
views
Error -25294 when importing a distribution profile in Xcode
I'm encountering an error in Xcode while trying to import a distribution profile. The error message I'm receiving is as follows:
An error occurred. Unable to import "iPhone Distribution: Account (...
0
votes
0
answers
61
views
Recover iOS keychain data on a new phone
I have stored credentials of a specific app in iOS’s keychain using the expo-secure-store package and the kSecAccessbility attribute is when_unlocked_this_device_only. I have saved a copy of my phone ...
2
votes
0
answers
112
views
SecKeyCreateWithData always returns nil in iOS 17
When I'm trying to create SecKey using SecKeyCreateWithData it returns nil in iOS 17 (it's still working fine on iOS 16.4) with following error:
var attributes: [String: Any] = [ kSecAttrKeyType as ...
0
votes
0
answers
140
views
How to implement a slightly more sophisticated IOS device ban feature
I have been programming a iOS app for the best part of 4 months now, and want to implement a feature in which I can ban users devices if they violate the apps policy permanently.(If the app is misused ...
0
votes
1
answer
35
views
KeychainWrapper causing unexpected behaviour
I am using the KeychainWrapper in my Swift app and KeychainWrapper.standard.bool(forKey: "isUserInSub") is causing a bug.
The line @State var isUserDeactive: Bool = KeychainWrapper.standard....
0
votes
0
answers
263
views
TypeError: Cannot read property 'setGenericPasswordForOptions' of null
import React, { createContext, useContext, useReducer } from "react";
import * as Keychain from "react-native-keychain";
// Initial state
const initialState = {
user: null,
...
0
votes
0
answers
66
views
Keychain data gets deleted when the app is not used for a long time
I am having a strange issue in my app, I store all tokens in secure storage (it stores data in Keychain under the hood) in my Flutter app and it's working perfectly for most of the users but one of my ...
2
votes
1
answer
225
views
swift keychain update does not work only until second attempt
Hello I am encountering a very odd issue with iOS keychain in terms of updating log in information stored in keychain. So if there are no saved credentials then running the save function correctly ...
1
vote
2
answers
159
views
Adding in "kSecAttrSynchronizable" stops privateKey from being saved
I am using the below code to save a private key (needed for end-to-end encryption) into the keychain. If I take out the line with kSecAttrSynchronizable as String: kCFBooleanTrue!, then the key is ...
0
votes
0
answers
42
views
iOS: The specified item could not be found in the keychain and status -25300
I'm trying to save data in the keychain, but when I retrieve the key I got the following error The specified item could not be found in the keychain.
here's the code to do so
var error: Unmanaged&...
1
vote
0
answers
76
views
Apple certificates installation issue in mac runners (GitHub Actions)
I am currently setting up the build process of my project on GitHub Actions with a macOS runner (macos-12 / macos-13). As part of the process, I need to install the "Developer ID Application"...
0
votes
0
answers
19
views
IOS Certificate "Not in keychain" CANNOT delete from xCode | "has 3 iOS Distribution certificates but their private keys are not installed."
I developed an App for IOS a couple years ago. Originally I distributed it to the AppStore from xCode with no issues 4 years ago. Last monday I had to change the developer account linked to the App ...
2
votes
1
answer
85
views
In Swift, should short-lived access token need to be stored in keychain?
Almost all answers about access token says you need to store it in keychain, however the access token I am implementing is only valid for 5 minutes after a user login.
The access token is returned by ...
-1
votes
1
answer
29
views
Instantiate SecKeychainRef and use in Golang using Cgo
I'm new to development on macOS environment, in Go & Objective-C. I'm trying to implement code in Go that can import an identity (.p12) into keychain.
While I'm able to find a library (https://...
2
votes
1
answer
910
views
saving and reading log in to keychain not working IOS swift
Hello I have a log in view that uses face recognition to authenticate the user and If the user is authenticated it reads their log in info from keychain if they have it saved. For some reason all this ...
0
votes
1
answer
186
views
how to save credentials to keychain swift
I want give my users the option to save their email and password to apple's keychain and it does not seem to be working
This is my function to add the SecItem to the keychain but there is nothing ...
0
votes
0
answers
89
views
Share Keychain between app and keyboard in Swift
I am trying to share the Keychain between an app and a keyboard extension, but i receive the following error when i try to access the keychain from the keyboard:
OSStatus error:[-25291] No keychain is ...
3
votes
1
answer
938
views
How to save email and password in the iCloud Keychain in Flutter for iOS and also using auto fill?
I basically have a login page where the user can create an account, and a sign in page.
I want to save the user email and password in the Keychain like sooo many apps, but I'm still not able to get ...
1
vote
0
answers
253
views
Signing certificate doesn't import on keychain with GitHub Actions iOS distribution
I'm trying to Github Action for iOS app distribution and I have followed the official Github Action guideline - Imports the Apple certificate and provisioning profile from the GitHub secrets
But my ...
0
votes
1
answer
370
views
How can I parse the certificate information output from the security command in Mac?
I need to retrieve the attributes of a certificate that is stored in the keychain on my Mac from the command line. I can collect them manually from the Keychain Access app, but I want to do that with ...
2
votes
1
answer
177
views
problem using getAllGenericPasswordServices in react-native-keychain
I'm trying to use react-native-keychain api and having some problems with getAllGenericPasswordServices()
I want to retrieve all the names of the passwords that I stored in the keychain in typeof ...
0
votes
0
answers
32
views
Verify client authenticity runs by privileged user, from server side
I'm working on a network product that has proprietary protocol connecting to remote server. The server grant permissions to the agent if the machine comply with some security standards (i.e. whether ...
0
votes
1
answer
197
views
ansible-vault with multiple ids and macOS keychain
My goal is to use ansible-vault with multiple IDs (e.g. dev and prod) and retrieve the correct password (for dev or prod) from macOS keychain.
I have tried many configuration combinations, but the ...
0
votes
1
answer
282
views
Mac Developer cert "no root certificate found", but it's right there in my keychain
I'm setting up a macOS 10.15 Intel machine for development and am trying to get a code signing certificate. From the Apple PKI web page, I downloaded
Apple Inc. Root
Apple Computer, Inc. Root
Apple ...
1
vote
0
answers
129
views
Jenkins swarm agent unable to build chain to self-signed root for signer "Apple Development: Local (123456789)"
I am using the Jenkins Swarm Plug-in v.3.24 to run my 2020 M1 mac mini with macOS Ventura 13.3.1 as a Jenkins agent. The goal is to use Jenkins to schedule and execute iOS build scripts on that mac. ...
0
votes
0
answers
53
views
Why does `SecIdentityCopyCertificate` keep crashing when trying to copy a certificate for VOIP using URLSession in Swift?
SecIdentityCopyCertificate not working it produce crashes. means not able to copy certificate from identity . i am doing it for voip .
//MARK: - URLSessionDelegate
extension ViewController : ...
0
votes
0
answers
32
views
Xcode and macOS - use different keychain for unit tests
I am trying to write some unit tests around the handling of keychain entry / retrieval, and would like to have the tests read/write from a different location while my app is running in the unit test ...
1
vote
1
answer
88
views
How do I script codesign to trust an imported keychain from the Mac command line
Hi I am trying to create a standard build project for our product so I can run it on any Mac using just one script.
so I have exported all my distribution certificates into a p12 file which I store in ...
-1
votes
1
answer
381
views
Telling git to use my GPG Keychain on mac
While trying to follow the GitHub docs on GPG signing for the second time, I have somehow managed to fall off completely. What is strange is that I did this before several months without any trouble, ...
0
votes
0
answers
80
views
macOS custom Keychain provider development
I would like to develop a macOS keychain integration with the network attached HSM storing the private key. However, I am unable to find the documentation describing the way how integration with the ...
0
votes
0
answers
68
views
Define different access policy to macOS/iOS keychain items
I'd like to allow only a specific process to read sensitive items from keychain (based on process signature using method SecItemCopyMatching), and fail any other read attempt.
Is it possible, what are ...
0
votes
0
answers
177
views
how to add new custom keychain to keychain list in mac
Using Amazon ec2 mac in which default keychain location is "/Library/Keychains/System.keychain"
Created new keychain in the location /home/ec2-user/Library/Keychains/abc
When i execute ...
0
votes
1
answer
42
views
Cannot save/retrieve symmetric string with keychain, error -25306
on iOS, not on OSX, cannot save/retrieve symmetric string with keychain, I have no issue using this code with
kSecClassGenericPassword
but I'd like to add a more secure usage of keychain with
...
0
votes
2
answers
196
views
Transfer Sparkle Updater private key signature EdDSA (ed25519) to new computer
I have an XCode 12.4 Swift project that I have been distributing since 2 years. I'm using the Sparkle-Project updating mechanism. macOS 10.15.7
I want to slowly migrate to a new Mac, XCode 13.4, macOS ...
0
votes
0
answers
26
views
macos: how can I remove asking a pssword for this command /usr/bin/security dump-keychain -d
I'm running in terminal the following code
/usr/bin/security dump-keychain -d
and its asking me for a password from my chain.
is it possible to remove it somehow?
0
votes
0
answers
26
views
How to access system trust store in Android 11+ programitically
I want to install a self-signed certificate in Android that will be system-wide accessible (accessible to other apps/browsers).
I have found that I can use keychain API, but for Android 11+ you can ...
0
votes
0
answers
79
views
How to store an key-value pair via Android KeyChain API?
Is it possible for us to store key-value pair(e.g. username/password pair) via Android KeyChain API? and then retrieve it on the next time?
I googled it, and just find examples for storing certs via ...
0
votes
0
answers
674
views
How do I retrieve a password from Keychain Access using keyring?
"Keeping credentials safe in Jupyter Notebooks" (https://towardsdatascience.com/keeping-credentials-safe-in-jupyter-notebooks-fbd215a8e311) says that "Keyring integrates with your OS ...
0
votes
0
answers
211
views
Save firebase credentials in the phone keychain Flutter
I am looking to recover the email and password entered in a Textformfield to save them in the phone keychain. Here is the code to use
class AuthMethodFirebase {
String mail;
String password;
...
1
vote
1
answer
1k
views
Azure VPN Client (MacOS) Fails to connect due to Error: getKeyChainSecret
I've spent hours today trying to find a resolution but it seems like my Azure VPN Client cannot create the token credential in my MacOS keychain. Multiple coworkers were able to connect, on similar ...
0
votes
2
answers
778
views
What is the best way to hold a private key inside ios app
Im looking to use a private key with API's the only issue is how to hold/accure the private key at least on the first run becuase after i can have it inside keychain
the best approach i see is having ...
2
votes
1
answer
283
views
using X509Certificate from KeyChain in OKHttpClient sslSocketFactory
I'm an Android Developer who has to use KeyChain not KeyStore. The KeyStore variant of our code works. I need to add KeyChain equivalent.
this works
final char[] PASSWORD = "***SOMEPASSWORD****&...
1
vote
0
answers
31
views
how to link a nickname with a keychain
Before, I was storing sensitive data(email, nickame, and password) in a json file. Now I am storing the email and the password into keychains ( kSecAttrAccount is the email)
But I have no ideea how ...
0
votes
0
answers
68
views
Error while importing Truststore into mac keychain
I'm trying to import a truststore [Internally created] to mac's keychain but I'm unable to and I get the following error on terminal - security: SecKeychainItemImport: Unknown format in import.
...