tag:gpgtools.tenderapp.com,2011-11-04:/discussions/problems/113385-err-100696144-operation-not-supported-by-deviceGPGTools: Discussion 2021-09-29T20:26:55Ztag:gpgtools.tenderapp.com,2011-11-04:Comment/493883792021-09-14T22:24:03Z2021-09-14T22:25:43ZERR 100696144 Operation not supported by device<div><p>I also ran this:</p>
<pre>
<code>killall -9 SecureRemoteAccessExtension
killall -9 ctkd
sudo killall -9 ctkd
sudo killall -SIGKILL -m .*com.apple.ifdreader
gpgconf --kill all</code>
</pre>
<p>Which fixed the <code>pcsc_connect failed: sharing violation (0x8010000b)</code> ; however, I'm still having trouble:</p>
<pre>
<code>hnicholas@hnicholas-a01:/tmp/homebrew-core$ gpg --card-status -vvvvv
gpg: using character set 'utf-8'
gpg: Note: RFC4880bis features are enabled.
gpg: selecting card failed: Operation not supported by device
gpg: OpenPGP card not available: Operation not supported by device</code>
</pre>
<pre>
<code>2021-09-14 16:20:03 scdaemon[25612] listening on socket '/Users/hnicholas/.gnupg/S.scdaemon'
2021-09-14 16:20:03 scdaemon[25612] handler for fd -1 started
2021-09-14 16:20:03 scdaemon[25612] DBG: chan_7 -> OK GNU Privacy Guard's Smartcard server ready
2021-09-14 16:20:03 scdaemon[25612] DBG: chan_7 <- GETINFO socket_name
2021-09-14 16:20:03 scdaemon[25612] DBG: chan_7 -> D /Users/hnicholas/.gnupg/S.scdaemon
2021-09-14 16:20:03 scdaemon[25612] DBG: chan_7 -> OK
2021-09-14 16:20:03 scdaemon[25612] DBG: chan_7 <- OPTION event-signal=31
2021-09-14 16:20:03 scdaemon[25612] DBG: chan_7 -> OK
2021-09-14 16:20:03 scdaemon[25612] DBG: chan_7 <- GETINFO version
2021-09-14 16:20:03 scdaemon[25612] DBG: chan_7 -> D 2.3.2
2021-09-14 16:20:03 scdaemon[25612] DBG: chan_7 -> OK
2021-09-14 16:20:03 scdaemon[25612] DBG: chan_7 <- SERIALNO
2021-09-14 16:20:03 scdaemon[25612] DBG: chan_7 -> ERR 100696144 Operation not supported by device <SCD>
2021-09-14 16:20:03 scdaemon[25612] DBG: chan_7 <- RESTART
2021-09-14 16:20:03 scdaemon[25612] DBG: chan_7 -> OK</code>
</pre></div>nshenry03tag:gpgtools.tenderapp.com,2011-11-04:Comment/493883792021-09-18T11:01:34Z2021-09-18T11:01:34ZERR 100696144 Operation not supported by device<div><p>Hi nshenry03,</p>
<p>welcome to the GPGTools support platform. Sorry to hear you are having problems using GPG Suite.</p>
<p>Could you execute the following commands:</p>
<pre>
<code>echo 'shared-access' >> ~/.gnupg/scdaemon.conf
killall scdaemon</code>
</pre>
<p>Does that improve the situation?</p>
<p>Best,<br>
Steve</p></div>Stevetag:gpgtools.tenderapp.com,2011-11-04:Comment/493883792021-09-20T14:08:58Z2021-09-20T14:08:58ZERR 100696144 Operation not supported by device<div><p>That worked! Thanks Steve!</p>
<p>What does <code>shared-access</code> do? It's not documented in <code>scdaemin</code>'s man page.</p>
<pre>
<code>hnicholas@hnicholas-a01:~$ man scdaemon | fgrep 'shared-access'
hnicholas@hnicholas-a01:~$</code>
</pre></div>nshenry03tag:gpgtools.tenderapp.com,2011-11-04:Comment/493883792021-09-22T09:40:24Z2021-09-22T09:40:24ZERR 100696144 Operation not supported by device<div><p>Hi!</p>
<p>basically there are two modes how to access a smart card:<br>
- exclusive mode: only <em>one</em> process can access the smart card at any time. Others will trigger a violation - shared mode: many processes share access to the smart card</p>
<p>Now macOS has a smart card daemon which runs once the system is started and connects to the smart card as soon as it is available in shared mode. Gnupg itself also has a smart card daemon, but that one by default tries to get exclusive access. The main reason is, that for shared access the daemon has to check if the state or data was altered by a different process and act accordingly, which makes the handling a bit more difficult, at the same time however allows for multiple processes accessing the smart card. In exclusive mode there‘s a guarantee that only one process can modify the smart card state and as such, these checks mentioned before are not necessary.</p>
<p>We have added shared-access to gnupg since in our experience there was never really a conflict which set the smart card to an incomplete state. GnuPG officially added that option 2.3.x which is the next major version of GnuPG currently being tested.</p>
<p>Hope that explains what is going on.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/493883792021-09-29T19:59:48Z2021-09-29T19:59:48ZERR 100696144 Operation not supported by device<div><p>Awesome, thanks for the explanation Luke :-)</p></div>nshenry03tag:gpgtools.tenderapp.com,2011-11-04:Comment/493883792021-09-29T20:26:53Z2021-09-29T20:26:53ZERR 100696144 Operation not supported by device<div><p>Glad this is solved for you. I'm closing this discussion. Should you need further assistance or have questions you can re-open this discussion here or open a new one any time.</p>
<p>Best,<br>
Steve</p></div>Steve