An error has occurred. Unable to import an item. The contents of this item cannot be retrieved. Missing .pem file

Quoting http://www.openradar.me/7092640: You can use the ‘security’ command line tool: security import priv_key.p12 -k ~/Library/Keychains/login.keychain security import pub_key.pem -k ~/Library/Keychains/login.keychain https://stackoverflow.com/a/16847082/14731 contains a similar answer.

Running xcodebuild from a forked terminal

I had te error User interaction is not allowed and solved it by unlocking the keychain first security unlock-keychain /Users/yannooo/Library/Keychains/login.keychain I’ve also tried to put my certs in the System’s keychain and it was working. My final solution was to put all my iPhone related certs in a dedicated keychain named iPhone.keychain using the Keychain … Read more

This certificate has an invalid issuer : Keychain marks all certificates as “Invalid Issuer” [duplicate]

In Keychain access, -> View -> Show Expired Certificates, then in your login keychain click on expired certificate and delete it. I also had the same expired certificate in my System keychain, so I deleted it from there too. -> After deleting the expired cert from the login and System keychains,download certificate from below link … Read more

Save and Load from KeyChain | Swift [duplicate]

Simplest Source import Foundation import Security // Constant Identifiers let userAccount = “AuthenticatedUser” let accessGroup = “SecuritySerivice” /** * User defined keys for new entry * Note: add new keys for new secure item and use them in load and save methods */ let passwordKey = “KeyForPassword” // Arguments for the keychain queries let kSecClassValue … Read more

Storing authentication tokens on iOS – NSUserDefaults vs Keychain?

I would highly recommend you use the keychain – it’s exactly what Facebook do for storing their session tokens. NSUserDefaults is not secure or encrypted – it can be easily opened and read, both on device and when synced to a Mac. So whilst user defaults is a good place for things like preferences and … Read more

security / codesign in Sierra: Keychain ignores access control settings and UI-prompts for permission

The command you need to use is as follows: security set-key-partition-list -S apple-tool:,apple: -s -k keychainPass keychainName Please have in mind that this command line tool works like the list-keychains’s way of modification. If you execute set-key-partition-list with a single value it will overwrite all partitionIDs in the certificates. It won’t validate the values passed. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)