Error Getting Keychain Handle
and earlier Please enter a title. You can not post a blank message. Please type your message and try again. This discussion is locked Sam Peascod1 Level 1 (25 points) Q: SSL Installation using certtool Hello,I have a commercial SSL certificate which I'm trying to attach to our Xserve (function as an IMAP/SMTP mail server (with webmail) and VPN server). I am following the instructions here:http://developer.apple.com/server/security_ssl.htmlWhen I get to creating the keychain (certtool c k="..."), I get this error:*Error getting keychain handleIs there another way I can do this? I've had a look at the keychain manager in GUI, but I'm not sure if this will work since it needs to be run as root (and I can't login to the GUI as root).Any ideas?Sam Posted on Aug 15, 2005 11:50 PM I have this question too Close Q: SSL Installation using certtool All replies Helpful answers by Justin Morgan, Justin Morgan Aug 15, 2005 3:20 PM in response to Sam Peascod1 Level 1 (0 points) Aug 15, 2005 3:20 PM in response to Sam Peascod1 Like you, I was not able to create a keychain using the certtool command as supplied in the URL you referenced. I was able to get around this problem this way:1) sudo to root shell with "sudo su -"2) as root, cd into Keychain Access.app within the contents / mac os subfolder to find the Keychain Access executable3) launch Keychain Access from the command line (this launches it as root) by typing "./Keychain\ Access" (you'll see Keychain Access GUI on your screen)4) in the Keychain Access GUI, use the menu item to create a new keychain called "certkc"Your keychain is now created for the root user.The next step in that document is to import your certificate into the keychain using "certtool i...". That command didn't work for me until I replaced the "k=certkc" with "k=certkc.keychain".Hope that helps,Justin Helpful (0) Reply options Link to this post by Sam Peascod1, Sam Peascod1 Aug 15, 2005 11:50 PM in response to Justin Morgan Level 1 (25 points) Aug 15, 2005 11:50 PM in response to Justin Morgan Thanks very much for your help Justin. I've overcome the certificate import problem using the process you suggested.Did you have to do anything else to get it to work with Mail/Web? The Apple instructions say (for Mail anyway) that you simply need to tell the server to Require SSL. However, unless the keychain process creates a new certificate under "Default", I'll need to add a Custom Configuration.Thanks,Sam Helpful (0) Reply options Link to this post This site contains user submitted content, comments and opin
JNUC 2016 Sessions Mini Events Discussions Overview User Groups JAMF Nation Global Foundation DOCUMENTATION Casper Suite Admin's Guide All Product Documentation OTHER Store Job Board JAMF Software Log In JAMF Nation, hosted by JAMF Software, is a dynamic and knowledgeable community of Apple-focused IT admins and Casper Suite users. Join us in person, in October, for the annual JAMF Nation User Conference (JNUC) to discover new and better ways to manage Apple devices. CLOSE Learn more about JNUC 2016 CLOSE 7 Mountain Lion - Error importing Signing Certificate from developer.apple.com Posted: 11/29/12 at 7:30 PM by donmontalvo I was able to generate a Certificate Signing https://discussions.apple.com/thread/132784?start=0&tstart=0 Request, and I sent it to Apple, and got a Signing Certificate. When I try to bring the Signing Certificate into Keychain Access I get this error: I found this error on the developer.apple.com site, what broke and how can I fix it? :) https://developer.apple.com/library/mac/#documentation/security/Reference/keychainservices/Reference/reference.html Thanks,Don 7 SOLVED Posted: 11/30/12 at 7:13 AM by jarednichols Run keychain first aid? Posted: 11/30/12 at 9:54 AM by donmontalvo https://jamfnation.jamfsoftware.com/discussion.html?id=6036 @jarednichols Yep, keychain first aid, and did the single user mode dance, and recovery hd to repair disk and fix permissions. Same error. Posted: 11/30/12 at 11:19 AM by donmontalvo I tested on a freshly imaged Mac...it works fine. :) I'll reimage the problem Mac, since it is used for Mac Packaging. Thanks,Don SOLVED Posted: 11/30/12 at 11:20 AM by jarednichols Interesting. Maybe you danced wrong. Were you spinning clockwise or anti-clockwise? Posted: 11/30/12 at 11:25 AM by donmontalvo LOL...I tried command line too... :) Got the same error using the command: $ sudo security add-trusted-cert -k /Users/donmontalvo/Library/Keychains/login.keychain ./devloperID_installer.cer Password: SecCertificateAddToKeychain: The specified keychain is not a valid keychain file. $ GOOD NEWS: I tested your procedure on a freshly imaged Mac, worked like a charm. I’ll have the guys reimage the packaging Mac so they can start signing their installers. U ROCK!!! Don Here is Jeff Strauss' excellent blog instructions: http://jeffstrauss.com/?p=82 Don SOLVED Posted: 11/30/12 at 1:03 PM by donmontalvo Called in a favor from an Apple SE...deleting the login.keychain and then reimporting it from ~/Library/Keychains/login.keychain fixed the problem on the Mac that had the problem. SOLVED Posted: 11/30/12 at 7:06 PM by donmontalvo Another interesti
Sign in Pricing Blog Support Search GitHub This repository Watch 62 Star 219 Fork 34 auth0/SimpleKeychain Code Issues 4 Pull requests https://github.com/auth0/SimpleKeychain/issues/31 2 Projects 0 Pulse Graphs New issue Handle Touch ID errors https://github.com/soffes/SAMKeychain when retrieve data from keychain - Swift #31 Open pcsantana opened this Issue Jul 5, 2016 · 1 comment Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 1 participant pcsantana commented Jul 5, 2016 • edited Hi! I error getting have a doubt. Is there a way to handle the errors if touch ID not matching? For example, if user tap on cancel button (in touch ID dialog). Thanks! pcsantana commented Jul 6, 2016 In addition, I tried to handle the error getting NSData with the method dataForKey(key:promptMessage:error) But I get a strange error when I pass error getting keychain error parameter (using swift): let keychain = A0SimpleKeychain() var keychainError: NSError? // I get an error in error parameter: '&' used with non-inout argument of type '()' let passwordData = keychain.dataForKey("some_key", promptMessage: "Some message", error: &keychainError) Here the xcode suggested to delete '&'. But if I do it, the error appears: "Call can throw, but it is not marked with 'try' and the error is not handled" Any suggestion? Thank you! pcsantana changed the title from Handle Touch ID errors when retrieve data from keychain to Handle Touch ID errors when retrieve data from keychain - Swift Jul 6, 2016 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Terms Privacy Security Status Help You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Sign in Pricing Blog Support Search GitHub This repository Watch 152 Star 3,898 Fork 713 soffes/SAMKeychain Code Issues 10 Pull requests 5 Projects 0 Pulse Graphs Simple Objective-C wrapper for the keychain that works on Mac and iOS 211 commits 4 branches 24 releases 30 contributors MIT Objective-C 78.9% Swift 18.5% Ruby 2.6% Objective-C Swift Ruby Clone or download Clone with HTTPS Use Git or checkout with SVN using the web URL. Open in Desktop Download ZIP Find file Branch: master Switch branches/tags Branches Tags improve-swift-compat master sskeychain swift3 Nothing to show v1.5.2 v1.5.1 v1.5.0 v1.4.1 v1.4.0 v1.3.1 v1.3.0 v1.2.3 v1.2.2 v1.2.1 v1.2.0 v1.1.0 v1.0.4 v1.0.3 1.0.2 1.0.1 1.0 0.2.1 0.2.0 0.1.4 0.1.3 0.1.2 0.1.1 0.1.0 Nothing to show New pull request Latest commit 5dca2d8 Sep 27, 2016 soffes Add badge Permalink Failed to load latest commit information. SAMKeychain.xcodeproj Rename OSX to macOS Sep 17, 2016 Sources New line Sep 17, 2016 Support Version 1.5.2 Sep 27, 2016 Tests Rename project, targets Jul 25, 2016 .gitignore Add tests and move files into source folder Jan 27, 2013 LICENSE Bump date Mar 11, 2016 Readme.markdown Add badge Sep 27, 2016 SAMKeychain.podspec Version 1.5.2 Sep 27, 2016 Readme.markdown SAMKeychain SAMKeychain is a simple wrapper for accessing accounts, getting passwords, setting passwords, and deleting passwords using the system Keychain on Mac OS X and iOS. Adding to Your Project Simply add the following to your Podfile if you're using CocoaPods: pod 'SAMKeychain' or Cartfile if you're using Carthage: github "soffes/SAMKeychain" To manually add to your project: Add Security.framework to your target Add SAMKeychain.h, SAMKeychain.m, SAMKeychainQuery.h, and SAMKeychainQuery.m to your project. SAMKeychain requires ARC. Note: Currently SAMKeychain does not support Mac OS 10.6. Working with the Keychain SAMKeychain has the following class methods for working with the system keychain: + (NSArray *)allAccounts; + (NSArray *)accountsForService:(NSString *)serviceName; + (NSString *)passwordForService:(NSString *)serviceName account:(NSString *)account; + (BOOL)deletePasswordForService:(NSString *)serviceName account:(NSString *)account; + (void)setAccessibilityType:(CFTypeRef)accessibilityType; + (BOOL)setPassword:(NSString *)password forService:(NSString *)serviceName account:(NSString *)account; Easy as that. (See SAMKeychain.h and SAMKeychainQuery.h for all of the methods.) Documentation Use prepared docume