ERR 100696144 Operation not supported by device

nshenry03's Avatar

nshenry03

14 Sep, 2021 08:45 PM

Which of our tools is giving you problems?

gpg

Attach a screenshot of the version info for all installed components

Screenshot

Describe your problem. Add as much detail as possible.

Running gpg --card-status gives OpenPGP card not available messages:

hnicholas@hnicholas-a01:~$ gpg --card-status -vvv
gpg: using character set 'utf-8'
gpg: no running gpg-agent - starting '/usr/local/MacGPG2/bin/gpg-agent'
gpg: waiting for the agent to come up ... (5s)
gpg: connection to agent established
gpg: selecting card failed: Operation not supported by device
gpg: OpenPGP card not available: Operation not supported by device

I enabled logging for scdaemon:

hnicholas@hnicholas-a01:~$ cat ~/.gnupg/scdaemon.conf
debug-all
debug-level guru
disable-ccid
log-file /tmp/scdaemon.log
verbose

I think that the issue is that there is another program using my YubiKey (pcsc_connect failed: sharing violation (0x8010000b)), but I'm not sure...

hnicholas@hnicholas-a01:~$ cat /tmp/scdaemon.log
2021-09-14 14:25:49 scdaemon[20395] listening on socket '/Users/hnicholas/.gnupg/S.scdaemon'
2021-09-14 14:25:49 scdaemon[20395] handler for fd -1 started
2021-09-14 14:25:49 scdaemon[20395] DBG: chan_7 -> OK GNU Privacy Guard's Smartcard server ready
2021-09-14 14:25:49 scdaemon[20395] DBG: chan_7 <- GETINFO socket_name
2021-09-14 14:25:49 scdaemon[20395] DBG: chan_7 -> D /Users/hnicholas/.gnupg/S.scdaemon
2021-09-14 14:25:49 scdaemon[20395] DBG: chan_7 -> OK
2021-09-14 14:25:49 scdaemon[20395] DBG: chan_7 <- OPTION event-signal=31
2021-09-14 14:25:49 scdaemon[20395] DBG: chan_7 -> OK
2021-09-14 14:25:49 scdaemon[20395] DBG: chan_7 <- GETINFO version
2021-09-14 14:25:49 scdaemon[20395] DBG: chan_7 -> D 2.2.27
2021-09-14 14:25:49 scdaemon[20395] DBG: chan_7 -> OK
2021-09-14 14:25:49 scdaemon[20395] DBG: chan_7 <- SERIALNO
2021-09-14 14:25:49 scdaemon[20395] DBG: enter: apdu_open_reader: portstr=(null)
2021-09-14 14:25:49 scdaemon[20395] detected reader 'Yubico YubiKey OTP+FIDO+CCID'
2021-09-14 14:25:49 scdaemon[20395] detected reader ''
2021-09-14 14:25:49 scdaemon[20395] reader slot 0: not connected
2021-09-14 14:25:49 scdaemon[20395] DBG: leave: apdu_open_reader => slot=0 [pc/sc]
2021-09-14 14:25:49 scdaemon[20395] DBG: enter: apdu_connect: slot=0
2021-09-14 14:25:49 scdaemon[20395] pcsc_connect failed: sharing violation (0x8010000b)
2021-09-14 14:25:49 scdaemon[20395] reader slot 0: not connected
2021-09-14 14:25:49 scdaemon[20395] DBG: leave: apdu_connect => sw=0x10006
2021-09-14 14:25:49 scdaemon[20395] DBG: enter: apdu_close_reader: slot=0
2021-09-14 14:25:49 scdaemon[20395] DBG: enter: apdu_disconnect: slot=0
2021-09-14 14:25:49 scdaemon[20395] DBG: leave: apdu_disconnect => sw=0x0
2021-09-14 14:25:49 scdaemon[20395] DBG: leave: apdu_close_reader => 0x0 (close_reader)
2021-09-14 14:25:49 scdaemon[20395] DBG: chan_7 -> ERR 100696144 Operation not supported by device <SCD>
2021-09-14 14:25:49 scdaemon[20395] DBG: chan_7 <- RESTART
2021-09-14 14:25:49 scdaemon[20395] DBG: chan_7 -> OK

What did you expect instead

Something like:

rchi@foobar: > gpg --card-status
Application ID ...: D2760001240101010001000000490000
Version ..........: 1.1
Manufacturer .....: PPC Card Systems
Serial number ....: 00000049
Name of cardholder: [not set]
Language prefs ...: de
Sex ..............: unspecified
URL of public key : [not set]
Login data .......: [not set]
Private DO 1 .....: [not set]
Private DO 2 .....: [not set]
Signature PIN ....: forced
Max. PIN lengths .: 254 254 254
PIN retry counter : 3 3 3
Signature counter : 0
Signature key ....: [not set]
Encryption key....: [not set]
Authentication key: [not set]
General key info..: [none]

Describe steps leading to the problem.

I upgraded to macOS Big Sur Version 11.6 and ran:

brew update && brew upgrade && brew upgrade --cask

Are you using any other Mail.app plugins?

Nope

  1. 1 Posted by nshenry03 on 14 Sep, 2021 10:24 PM

    nshenry03's Avatar

    I also ran this:

    killall -9 SecureRemoteAccessExtension
    killall -9 ctkd
    sudo killall -9 ctkd
    sudo killall -SIGKILL -m .*com.apple.ifdreader
    gpgconf --kill all
    

    Which fixed the pcsc_connect failed: sharing violation (0x8010000b) ; however, I'm still having trouble:

    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
    
    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
    
  2. Support Staff 2 Posted by Steve on 18 Sep, 2021 11:01 AM

    Steve's Avatar

    Hi nshenry03,

    welcome to the GPGTools support platform. Sorry to hear you are having problems using GPG Suite.

    Could you execute the following commands:

    echo 'shared-access' >> ~/.gnupg/scdaemon.conf
    killall scdaemon
    

    Does that improve the situation?

    Best,
    Steve

  3. 3 Posted by nshenry03 on 20 Sep, 2021 02:08 PM

    nshenry03's Avatar

    That worked! Thanks Steve!

    What does shared-access do? It's not documented in scdaemin's man page.

    hnicholas@hnicholas-a01:~$ man scdaemon | fgrep 'shared-access'
    hnicholas@hnicholas-a01:~$
    

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • ss.png 102 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac