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.

Keychain is Apple Inc.'s password management system in Mac OS and iOS. It was introduced with Mac OS 8.6, and has been included in all subsequent versions of Mac OS, including Mac OS X. A Keychain can contain various types of data: passwords (for Websites, FTP servers, SSH accounts, network shares, wireless networks, groupware applications, encrypted disk images), private keys, certificates, and secure notes.

In Mac OS X, keychain files are stored in ~/Library/Keychains/, /Library/Keychains/, and /Network/Library/Keychains/, and the Keychain Access GUI application is located in the Utilities folder in the Applications folder. It is free, open source software released under the terms of the APSL. The command line equivalent of Keychain Access is /usr/bin/security. The keychain file(s) stores a variety of data fields including a title, URL, notes and password. Other than Secure Notes created with Keychain Access, only the password is encrypted, with Triple DES. The contents of Secure Notes are also encrypted.

Source: Keychain

1969 questions
0
votes
0 answers

saving in ios keychain is not persistent

I am using Apple KeyChainItemWrapper to store to keychain. The problem is if I log the stored data directly after saving (by instantiate a new keychainItem with the same identifier) I can see the data. But when I kill the app and reopen it it…
zizoodiesel
  • 197
  • 1
  • 13
0
votes
2 answers

How does one script the Keychain via rb-appscript?

I followed the docs and wrote: require 'rubygems' require 'appscript' loginKeychain = Appscript::app('Keychain Scripting').keychains['login.keychain'] userName = loginKeychain.keys[its.name.eq(name)].password.get UPDATE: if I run the script via…
Sean DeNigris
  • 6,306
  • 1
  • 31
  • 37
0
votes
0 answers

Automatically trust URLs via Swift to prevent SSL errors

I have an application that can send HTTP requests (It uses Alamofire to achieve this). The problem I have is that the URL I'm using isn't secure, it is our company API for connected devices. At the moment the user has to manually visit the API and…
SuperHanz98
  • 2,090
  • 2
  • 16
  • 33
0
votes
2 answers

How to store a .cer file in the keychain macOS (objective c)

I need to store a root certificate (for the browser) in the keychain of macOS with an application built in Objective C. Is there an example of how to do this?
0
votes
2 answers

How can I use keychain when I close my ios app?

I'm developing an iOS app and want user only type username:password pair only once (unless he logs out). Currently I use keychain-swift framework for storing emails/passwords. I basically run: let keychain = KeychainSwift() keychain.set("johndoe",…
A. Karnaval
  • 727
  • 2
  • 8
  • 12
0
votes
0 answers

how Import Root CA into the login Keychain to get support for selfsigned SSL certificates via the command line

I'm trying to add a CA to the login keychain for getting SSL support for safari\Google chrome browser.I use the below security command sudo security add-trusted-cert -r trustRoot -k "/Users/maya/Library/Keychains/login.keychain"…
unknown
  • 643
  • 4
  • 15
  • 38
0
votes
1 answer

Simple way to store and read a password in apple keychain?

I want a simple way to store and read a password in apple keychain using swift5 for iOS Apple documentation about keychain is a little…
0
votes
1 answer

React-native access keychain data in navigation

I'm building an App, and as a test I'm storing token in Keychain. In the navigation I'm using stack navigator and switch navigator. I'm trying to retrieve the token from keychain, and use it to determine the intialRouteName : if the token exist ->…
Nil
  • 79
  • 1
  • 9
0
votes
1 answer

Is it possible to loop through OSX keychain certificates in a bash array?

In our environment, the OSX login keychain contains multiple certificates with the same name (the enduser account name). I want to loop through these certs and capture the expiration dates. I created an array in bash using the security command…
xian
  • 17
  • 2
0
votes
0 answers

Value stored in shared NSUserDefaults or shared keychain is not updated in time

I try to share some data between my app and it's notification extension. I setup an App Group and use NSUserDefaults to share the data. It works fine at the beginning. But then i found when i update the value from A to B, the extension will not get…
WPLog
  • 1
  • 3
0
votes
2 answers

adding key to Key Chain Item

So this is my first question on Stack Overflow and it's about keychain so, I read apple documentation about keychain and they mention that the key can be generated or obtain by other means "which is my case" then I created "query dictionary" like…
NSD
  • 89
  • 6
0
votes
1 answer

Why am I getting errSecParam (-50) back from trying to save a key to keychain?

I have the following code following this storing_keys_in_the_keychain. func generateInitialKey() -> Data { let key = AES256.randomKey() let addQuery: Dictionary = [ kSecClass as String: kSecClassKey, …
swift-lynx
  • 3,219
  • 3
  • 26
  • 45
0
votes
0 answers

Can I safely delete my /Library/Keychains/System.keychain file?

I'd like to clear all memory of passwords, certificates, etc., from my MacBook and start over. It seems like deleting the /Library/Keychains/System.keychain file and restarting is the simplest way to achieve this. Is it safe to do this? I'd also…
dbanas
  • 1,707
  • 14
  • 24
0
votes
1 answer

How to allow two or more react native apps to share data with each other?

I am working on a POC where I want to share data between two or more apps on the same device. I have read about Shared Preferences for Android but the article said that Apps can only read data stored by them or they can store data as global, in…
Ajay Gupta
  • 1,944
  • 2
  • 21
  • 36
0
votes
1 answer

How to check whether username and password have been saved in keychain

i have saved my username and password in keychain but how can i come to know my username and password is stored in keychain
Rani
  • 3,333
  • 13
  • 48
  • 89
1 2 3
99
100