Smartcard: Broken scdaemon on Monterey 12.1 / M1 processor

Joseph Miller's Avatar

Joseph Miller

05 Jan, 2022 12:20 AM

Upgraded to 2021.3. Try to run

gpg2 --card-status

and I get

gpg: error getting version from 'scdaemon': No SmartCard daemon
gpg: OpenPGP card not available: No SmartCard daemon`

After a lot of mucking around, I changed gpg-agent.conf to include

scdaemon-program  /usr/local/MacGPG2/libexec/scdaemon

And at least now card status works

The one at /opt/homebrew/Cellar/gnupg/2.3.4/libexec/scdaemon seems quite broken

  1. 1 Posted by Joseph Miller on 05 Jan, 2022 02:07 AM

    Joseph Miller's Avatar

    Update: However, signing commits, other actions etc are still quite broken:

    error: gpg failed to sign the data
    fatal: failed to write commit object
    gpg2 --card-status
    Reader ...........: Yubico YubiKey OTP FIDO CCID
    Application ID ...: D2760001240103040006137057520000
    Application type .: OpenPGP
    Version ..........: 3.4
    Manufacturer .....: Yubico
    Serial number ....: 13705752
    Name of cardholder: [not set]
    Language prefs ...: [not set]
    Salutation .......:
    URL of public key : [not set]
    Login data .......: [not set]
    Signature PIN ....: not forced
    Key attributes ...: rsa4096 rsa2048 rsa2048
    Max. PIN lengths .: 127 127 127
    PIN retry counter : 3 0 3
    Signature counter : 1729
    KDF setting ......: off
    Signature key ....: 2FBD D453 BFCB 59C5 67BD  8B33 F29D F6B7 FAEF 0DE3
          created ....: 2020-11-12 11:55:24
    Encryption key....: [none]
    Authentication key: [none]
    General key info..: pub  rsa4096/F29DF6B7FAEF0DE3 2020-11-12 Joseph Miller <[email blocked]>
    sec>  rsa4096/F29DF6B7FAEF0DE3  created: 2020-11-12  expires: 2025-01-01
                                    card-no: 0006 13705752
    ssb   rsa4096/9CC0F27EF145C545  created: 2020-11-12  expires: 2025-01-01
  2. 2 Posted by Joseph Miller on 06 Jan, 2022 04:03 AM

    Joseph Miller's Avatar

    Actually, we can probably close off this one. I had installed the pass package, which as a dependency, installed the gnupg package, which was messing with the gpg-suite set up.

    How frustrating!

  3. Support Staff 3 Posted by Steve on 12 Jan, 2022 11:12 PM

    Steve's Avatar

    HI Joseph,

    glad to hear you were already able to figure this one out.

    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.


  4. Steve closed this discussion on 12 Jan, 2022 11:12 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? 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