tag:gpgtools.tenderapp.com,2011-11-04:/discussions/problems/101571-card-support-stopped-workin-on-macos-in-20191GPGTools: Discussion 2019-09-01T16:48:49Ztag:gpgtools.tenderapp.com,2011-11-04:Comment/475606152019-08-26T09:27:21Z2019-09-01T16:48:49ZCard support stopped workin on macOS in 2019.1 (reason: false positive in Cylance AV software, workaround: whitelist file)<div><p>Hey,</p>
<p>I upgraded to 2019.1 and after this all attemps to use my YubiKey stopped working. <code>gpg --card-stats</code> would just produce an error message about scdeamon not being found. I tried completely removing gpgtools and installing again with the same outcome.</p>
<p>In the end I downgraded to 2018.5 which works fine.</p></div>Hugo Tuniustag:gpgtools.tenderapp.com,2011-11-04:Comment/475606152019-08-26T09:31:08Z2019-08-26T09:31:08ZCard support stopped workin on macOS in 2019.1 (reason: false positive in Cylance AV software, workaround: whitelist file)<div><p>Hi Hugo,</p>
<p>we are very sorry for the bad expierience.<br>
Would you be able to send us the exact error message? Our own smart cards seem to work fine with 2019.1 so any additional debugging information would be of great help.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/475606152019-08-26T09:58:28Z2019-08-26T09:58:28ZCard support stopped workin on macOS in 2019.1 (reason: false positive in Cylance AV software, workaround: whitelist file)<div><p>Hey Luke,</p>
<p>this is what I saw</p>
<pre>
<code>$ gpg --card-status
gpg: error getting version from 'scdaemon': No SmartCard daemon
gpg: OpenPGP card not available: No SmartCard daemon</code>
</pre></div>Hugo Tuniustag:gpgtools.tenderapp.com,2011-11-04:Comment/475606152019-08-26T10:19:32Z2019-08-26T10:19:32ZCard support stopped workin on macOS in 2019.1 (reason: false positive in Cylance AV software, workaround: whitelist file)<div><p>Could you also run the following commands:</p>
<pre>
<code>which gpg
ls -l /usr/local/bin/gpg</code>
</pre></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/475606152019-08-26T10:23:08Z2019-08-26T10:23:08ZCard support stopped workin on macOS in 2019.1 (reason: false positive in Cylance AV software, workaround: whitelist file)<div><p>I don't have 2019.1 installed anymore, but gpg was in <code>/usr/local/bin/gpg</code> when I checked. I assumed it was symlinked to <code>/usr/local/MacGPG2/bin/gpg2</code>.</p>
<p><code>scdaemon</code> was in <code>/usr/local/MacGPG2/libexec/scdaemon</code></p></div>Hugo Tuniustag:gpgtools.tenderapp.com,2011-11-04:Comment/475606152019-08-26T10:45:56Z2019-08-26T10:45:56ZCard support stopped workin on macOS in 2019.1 (reason: false positive in Cylance AV software, workaround: whitelist file)<div><p>Sometimes these errors are seen if another gpg (from homebrew/macports/fink) is installed along side.</p>
<p>Could you have a look if you find a crash log in <code>~/Library/Logs/DiagnosticReports</code><br>
Maybe scdaemon is crashing for a reason.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/475606152019-08-26T13:28:49Z2019-08-26T13:28:49ZCard support stopped workin on macOS in 2019.1 (reason: false positive in Cylance AV software, workaround: whitelist file)<div><p>Yup you were right, it was crashing.</p>
<pre>
<code>Process: scdaemon [3255]
Path: /usr/local/MacGPG2/libexec/scdaemon
Identifier: scdaemon
Version: 0
Code Type: X86-64 (Native)
Parent Process: gpg-agent [1491]
Responsible: scdaemon [3255]
User ID: 502
Date/Time: 2019-08-26 09:42:43.948 +0100
OS Version: Mac OS X 10.14.5 (18F132)
Report Version: 12
Bridge OS Version: 3.5 (16P5200)
Anonymous UUID: 3A5F9B52-6A38-8B25-4B36-96F41D07D824
Time Awake Since Boot: 680 seconds
System Integrity Protection: enabled
Crashed Thread: 0
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: DYLD, [0x1] Library missing
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
Library not loaded: @rpath/libksba.8.dylib
Referenced from: /usr/local/MacGPG2/libexec/scdaemon
Reason: image not found
Binary Images:
0x1054cc000 - 0x105527ff7 +scdaemon (0) <334854D0-02FC-3643-BD3E-63F54CB137EF> /usr/local/MacGPG2/libexec/scdaemon
0x105541000 - 0x105602ff7 +libgcrypt.20.dylib (0) <9DEACF70-3D76-3DD8-BAB4-5FC6C7FC17FA> /usr/local/MacGPG2/lib/libgcrypt.20.dylib
0x105627000 - 0x10563efff +libgpg-error.0.dylib (0) <EDC4E090-CBF0-3F2D-9892-C2AD9D7C77D7> /usr/local/MacGPG2/lib/libgpg-error.0.dylib
0x106897000 - 0x1069016ef dyld (655.1.1) <CE635DB2-D47E-3C05-A0A3-6BD982E7E750> /usr/lib/dyld</code>
</pre></div>Hugo Tuniustag:gpgtools.tenderapp.com,2011-11-04:Comment/475606152019-08-26T14:29:55Z2019-08-26T14:29:55ZCard support stopped workin on macOS in 2019.1 (reason: false positive in Cylance AV software, workaround: whitelist file)<div><p>Are you using Cylance by any chance or some antivirus? Someone mentioned that the libksba file was identified as problematic. We have not received details yet however.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/475606152019-08-30T08:14:57Z2019-08-30T08:14:57ZCard support stopped workin on macOS in 2019.1 (reason: false positive in Cylance AV software, workaround: whitelist file)<div><p>Yup this was my work machine which does use Cylance. That was my first thought too, but I didn't see anything in the logs of Cylance. I'll try on my personal machine which does not have Cylance to verify.</p></div>Hugo Tuniustag:gpgtools.tenderapp.com,2011-11-04:Comment/475606152019-08-30T09:40:13Z2019-08-30T09:40:13ZCard support stopped workin on macOS in 2019.1 (reason: false positive in Cylance AV software, workaround: whitelist file)<div><p>I checked and it worked on my personal machine. I also found an entry in Cylance about removing that dylib so you are correct the issue was with Cylance.</p></div>Hugo Tuniustag:gpgtools.tenderapp.com,2011-11-04:Comment/475606152019-08-30T11:10:37Z2019-08-30T11:10:37ZCard support stopped workin on macOS in 2019.1 (reason: false positive in Cylance AV software, workaround: whitelist file)<div><p>Just confirming that after whitelisting the dylib in Cylance it all works. Thanks for your help Luke</p></div>Hugo Tuniustag:gpgtools.tenderapp.com,2011-11-04:Comment/475606152019-08-30T11:20:27Z2019-08-30T11:20:27ZCard support stopped workin on macOS in 2019.1 (reason: false positive in Cylance AV software, workaround: whitelist file)<div><p>Perfect thank you very much for your update!<br>
The people at Cylance told us that they are using AI for their detection heuristic and it appears to have been off in this case.</p></div>Luke Le