1. Putting the same cert in 9a had no visible effect. The card is still visible as "PIV-II" in Keychain. It shows
one certificate (which makes sense, because neither PIV Auth nor Card Auth are supposed to be usable by applications such as Keychain, AFAIK). It is still not unlock-able.
Naturally, when I select "My Certificates" (which means - certificates for which I have private keys) is shows
nothing.
2. Unlocking is not pointless - it enables access to the private keys. Since it turns out impossible - I'm not surprised that neither Apple Mail nor MS Outlook-2011 even saw my certs on the NEO. So of course I was unable to sign with it.
6. Darn. So how to get OpenSC.tokend to work with NEO??? (And maybe Centrify?)
7. Yeah, except that the card has no room for the intermediate certs - that's what belongs to the Keychain
. But I've got that .p12 imported just fine, so doubt that part is a problem.
Yeah, I've rebooted many times by now. Yeah, right now the only tokend in /System/Library/Security/tokend is OpenSC.tokend:
Code:
$ ll /System/Library/Security/tokend
total 0
drwxr-xr-x 5 root wheel 170 Mar 17 17:21 ./
drwxr-xr-x 8 root wheel 272 Mar 16 13:05 ../
drwxr-xr-x 3 root wheel 102 Oct 30 06:12 OpenSC.tokend/
drwxr-xr-x 7 root wheel 238 Mar 17 17:21 tmp/
drwxr-xr-x 5 root wheel 170 Apr 17 2014 uiplugins/
I think this is the relevant part of the logs:
Code:
Mar 18 11:48:51 hostname com.apple.SecurityServer[38]: Token reader Yubico Yubikey NEO OTP+U2F+CCID 00 00 inserted into system
Mar 18 11:48:53 hostname com.apple.SecurityServer[38]: reader Yubico Yubikey NEO OTP+U2F+CCID 00 00 inserted token "PIV_II" (c62cfe2c4e51372d76c7a0492489dda9b7c12671) subservice 12 using driver com.apple.tokend.opensc
Mar 18 11:49:00 hostname secd[597]: SecErrorGetOSStatus unknown error domain: com.apple.security.sos.error for error: The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
Mar 18 11:49:00 hostname secd[597]: securityd_xpc_dictionary_handler Keychain Access[44833] DeviceInCircle The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
...
Mar 18 13:27:06 hostname com.apple.SecurityServer[38]: reader Yubico Yubikey NEO OTP+U2F+CCID 00 00 removed token "PIV_II" (c62cfe2c4e51372d76c7a0492489dda9b7c12671) subservice 12
Mar 18 13:27:15 hostname com.apple.SecurityServer[38]: Token reader Yubico Yubikey NEO OTP+U2F+CCID 00 00 inserted into system
Mar 18 13:27:17 hostname com.apple.SecurityServer[38]: reader Yubico Yubikey NEO OTP+U2F+CCID 00 00 inserted token "PIV_II" (c62cfe2c4e51372d76c7a0492489dda9b7c12671) subservice 12 using driver com.apple.tokend.opensc
...
Mar 18 13:40:32 hostname apsd[588]: CFNetwork SSLHandshake failed (-9806)
Mar 18 13:40:40 hostname authexec[78741]: executing /Library/Frameworks/VirusScanPreferences.framework/Versions/Current/Resources/prefsHelperTool
Mar 18 13:40:48 hostname secd[597]: SecErrorGetOSStatus unknown error domain: com.apple.security.sos.error for error: The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
Mar 18 13:40:48 hostname secd[597]: securityd_xpc_dictionary_handler Keychain Access[78549] DeviceInCircle The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
Mar 18 13:40:48 hostname secd[597]: SecErrorGetOSStatus unknown error domain: com.apple.security.sos.error for error: The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
Mar 18 13:40:48 hostname secd[597]: securityd_xpc_dictionary_handler Keychain Access[78549] DeviceInCircle The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
Mar 18 13:40:48 hostname secd[597]: SecErrorGetOSStatus unknown error domain: com.apple.security.sos.error for error: The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
Mar 18 13:40:48 hostname secd[597]: securityd_xpc_dictionary_handler Keychain Access[78549] DeviceInCircle The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
Mar 18 13:40:48 hostname secd[597]: SecErrorGetOSStatus unknown error domain: com.apple.security.sos.error for error: The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
Mar 18 13:40:48 hostname secd[597]: securityd_xpc_dictionary_handler Keychain Access[78549] DeviceInCircle The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
Mar 18 13:40:48 hostname secd[597]: SecErrorGetOSStatus unknown error domain: com.apple.security.sos.error for error: The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
Mar 18 13:40:48 hostname secd[597]: securityd_xpc_dictionary_handler Keychain Access[78549] DeviceInCircle The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
And maybe this (happens with PKCS11.tokend):
Code:
Mar 17 01:02:59 MacBook-Air.local com.apple.SecurityServer[15]: Token reader Yubico Yubikey NEO OTP+U2F+CCID 00 00 inserted into system
Mar 17 01:03:04 MacBook-Air.local com.apple.SecurityServer[15]: token in reader Yubico Yubikey NEO OTP+U2F+CCID 00 00 cannot be used (error 2147549225)
And this - on the same (MacBook Air) machine but with OpenSC.tokend:
Code:
Mar 17 01:53:27 MacBook-Air.local com.apple.SecurityServer[15]: Token reader Yubico Yubikey NEO OTP+U2F+CCID 00 00 inserted into system
Mar 17 01:53:31 MacBook-Air.local com.apple.SecurityServer[15]: reader Yubico Yubikey NEO OTP+U2F+CCID 00 00 inserted token "PIV_II" (5269d71a0501b05bbffa28e25bd8e73d569b21b2) subservice 7 using driver com.apple.tokend.opensc
.....
Mar 17 01:53:49 MacBook-Air.local launchservicesd[80]: Application App:"iTerm" asn:0x0-20020 pid:371 refs=7 @ 0x7fbc52519d60 tried to be brought forward, but isn't in fPermittedFrontApps ( ( "LSApplication:0x0-0x22022 pid=455 "SecurityAgent"")), so denying. : LASSession.cp #1481 SetFrontApplication() q=LSSession 100004/0x186a4 queue
Mar 17 01:53:49 MacBook-Air.local WindowServer[112]: [cps/setfront] Failed setting the front application to iTerm, psn 0x0-0x20020, securitySessionID=0x186a4, err=-13066
Mar 17 01:53:49 MacBook-Air kernel[0]: Sandbox: mDNSResponder(65) deny file-read-data /
Mar 17 01:53:49 --- last message repeated 4 times ---
Mar 17 01:53:49 MacBook-Air kernel[0]: Sandbox: apsd(87) deny file-read-data /
Mar 17 01:53:50 MacBook-Air.local sandboxd[282] ([87]): apsd(87) deny file-read-data /
Mar 17 01:54:03 --- last message repeated 3 times ---
Though the last message could be from gpg-agent...