Wenn ich den USB-Stick nach dem hochfahren einstecke muss ich erst den PCSC-Daemon neustarten damit GnuPG das Ding erkennt. Hier mal wie das abläuft:
Code: Select all
schmidicom@shs-pulse ~> gpg2 --card-status
gpg: selecting card failed: Kein passendes Gerät gefunden
gpg: OpenPGP Karte ist nicht vorhanden: Kein passendes Gerät gefundenCode: Select all
schmidicom@shs-pulse ~ [2]> systemctl status pcscd.service
● pcscd.service - PC/SC Smart Card Daemon
Loaded: loaded (/usr/lib/systemd/system/pcscd.service; indirect; preset: enabled)
Active: active (running) since Sun 2024-06-16 08:16:58 CEST; 29s ago
TriggeredBy: ● pcscd.socket
Docs: man:pcscd(8)
Main PID: 2357 (pcscd)
Tasks: 10 (limit: 33277)
Memory: 2.5M (peak: 4.1M)
CPU: 63ms
CGroup: /system.slice/pcscd.service
└─2357 /usr/sbin/pcscd --foreground --auto-exit
Jun 16 08:16:58 shs-pulse systemd[1]: Started PC/SC Smart Card Daemon.
Jun 16 08:16:58 shs-pulse (pcscd)[2357]: pcscd.service: Referenced but unset environment variable evaluates to an empty>Code: Select all
schmidicom@shs-pulse ~> systemctl restart pcscd.serviceCode: Select all
schmidicom@shs-pulse ~> gpg2 --card-status
Reader ...........: Nitrokey Nitrokey 3 [CCID/ICCD Interface] 01 00
Application ID ...: CENSORED
Application type .: OpenPGP
Version ..........: 3.4
Manufacturer .....: Nitrokey
Serial number ....: CENSORED
Name of cardholder: CENSORED
Language prefs ...: de
Salutation .......: CENSORED
URL of public key : CENSORED
Login data .......: [nicht gesetzt]
Signature PIN ....: zwingend
Key attributes ...: ed25519 cv25519 ed25519
Max. PIN lengths .: 127 127 127
PIN retry counter : 3 0 3
Signature counter : 15
KDF setting ......: off
UIF setting ......: Sign=off Decrypt=off Auth=off
Signature key ....: CENSORED
created ....: 2023-12-24 13:39:14
Encryption key....: CENSORED
created ....: 2023-12-24 13:39:31
Authentication key: CENSORED
created ....: 2023-12-25 18:24:01
General key info..: pub CENSORED
sec> CENSORED erzeugt: 2023-12-24 verfällt: 2026-12-23
Kartennummer:000F D7E0BFF0
ssb> CENSORED erzeugt: 2023-12-24 verfällt: niemals
Kartennummer:000F D7E0BFF0
ssb> CENSORED erzeugt: 2023-12-25 verfällt: niemals
Kartennummer:000F D7E0BFF0.gnupg/gpg-agent.conf wrote:###+++--- GPGConf ---+++###
enable-ssh-support
###+++--- GPGConf ---+++### Mo 25 Dez 2023 20:23:05 CET
# GPGConf edited this configuration file.
# It will disable options before this marked block, but it will
# never change anything below these lines.
.gnupg/gpg.conf wrote:###+++--- GPGConf ---+++###
utf8-strings
keyserver hkps://keys.openpgp.org
###+++--- GPGConf ---+++### Mo 25 Dez 2023 20:23:05 CET
# GPGConf edited this configuration file.
# It will disable options before this marked block, but it will
# never change anything below these lines.
Das "disable-ccid" in der Datei ".gnupg/scdaemon.conf" habe ich drin weil das ganze ohne diese Option garnicht mehr funktioniert hat..gnupg/scdaemon.conf wrote:###+++--- GPGConf ---+++###
debug-level basic
log-file socket:///home/schmidicom/.gnupg/log-socket
###+++--- GPGConf ---+++### Mo 25 Dez 2023 20:23:05 CET
# GPGConf edited this configuration file.
# It will disable options before this marked block, but it will
# never change anything below these lines.
disable-ccid
Siehe dazu folgendes: https://github.com/libusb/libusb/issues/1471
Weiss jemand wie ich dieses Problem lösen oder wenigstens umschiffen kann?

