Mailing List Archive

Troubleshooting help
Hi,   I've a lot of problems to use gpg with OmniKey AG OMNIKEY 3x21 and Alcor Micro Corp. AU9540. gpg: selecting card failed
I'm on Manjaro rolling with Gnome 42.4
Can you help me to troubleshooting?
Than you regards
Uzzi
Re: Troubleshooting help [ In reply to ]
Hi!

On Wed, 9 Nov 2022 18:10, Andrea Lenarduzzi said:
> Hi,   I've a lot of problems to use gpg with OmniKey AG OMNIKEY 3x21
> and Alcor Micro Corp. AU9540. gpg: selecting card failed

Better get a solid reader and not those Windows reader which delegate
parts of their duties in their Windows driver (Short APDU mode
problems). However, you can try to use the pcscd instead of the GnuPG
internal CCID driver. Add

disabled-ccid-driver

to ~/.gnupg/scdaemon.com and make sure pcscd is installed and running.

--
The pioneers of a warless world are the youth that
refuse military service. - A. Einstein
Re: Troubleshooting help [ In reply to ]
Hi, thank you for feedback.
this is my reports:sudo systemctl status pcscd? pcscd.service - PC/SC Smart Card Daemon     Loaded: loaded (/usr/lib/systemd/system/pcscd.service; indirect; preset: disabled)     Active: active (running) since Thu 2022-11-10 12:50:23 CET; 1min 55s agoTriggeredBy: ? pcscd.socket       Docs: man:pcscd(8)   Main PID: 464651 (pcscd)      Tasks: 7 (limit: 76874)     Memory: 1.3M        CPU: 77ms     CGroup: /system.slice/pcscd.service             ??464651 /usr/bin/pcscd --foreground --auto-exit
nov 10 12:50:23 Mes-CesiD02 systemd[1]: Started PC/SC Smart Card Daemon.
cat ~/.gnupg/scdaemon.conf
###+++--- GPGConf ---+++####reader-port /dev/input/event12#pcsc-driver /usr/lib/pcsc/drivers/omnikey_ifdokccid.bundle/Contents/Linux/ifdokccid.sodisabled-ccid-driver###+++--- GPGConf ---+++### ven 21 ott 2022, 20:44:55 CEST# GPGConf edited this configuration file.# It will disable options before this marked block, but it will# never change anything below these lines.reader-port 32768card-timeout 5
gpg: selecting card failed

Il giovedì 10 novembre 2022 alle ore 09:56:09 CET, Werner Koch <wk@gnupg.org> ha scritto:

Hi!

On Wed,  9 Nov 2022 18:10, Andrea Lenarduzzi said:
> Hi,   I've a lot of problems to use gpg with OmniKey AG OMNIKEY 3x21
> and Alcor Micro Corp. AU9540. gpg: selecting card failed

Better get a solid reader and not those Windows reader which delegate
parts of their duties in their Windows driver (Short APDU mode
problems).  However, you can try to use the pcscd instead of the GnuPG
internal CCID driver.  Add

disabled-ccid-driver

to ~/.gnupg/scdaemon.com and make sure pcscd is installed and running.

--
The pioneers of a warless world are the youth that
refuse military service.            - A. Einstein
Re: Troubleshooting help [ In reply to ]
On Thu, 10 Nov 2022 11:57, Andrea Lenarduzzi said:

> disabled-ccid-driver

I hope that is a c=P error. The option is called "disable-ccid-driver"
and not "disabled-..."

> reader-port 32768

That is a very unlikley reader port sepcification you need to use the
strings as shown by PC/SC. If you run 2.2

gpg-connect-agent 'scd getinfo reader_list' /bye

may give you a list of available reader.

> gpg: selecting card failed

Likely with the above reader port.


Shalom-Salam,

Werner

--
The pioneers of a warless world are the youth that
refuse military service. - A. Einstein
Re: Troubleshooting help [ In reply to ]
Thank you
gpg-connect-agent 'scd getinfo reader_list' /byeD 058F:9540:X:0%0A076B:3031:X:0%0AOK
but gpg --card-edit
gpg: selecting card failed: with #reader-port 32768 and disable-ccid-driver
Il venerdì 11 novembre 2022 alle ore 08:38:08 CET, Werner Koch <wk@gnupg.org> ha scritto:

On Thu, 10 Nov 2022 11:57, Andrea Lenarduzzi said:

> disabled-ccid-driver

I hope that is a c=P error.  The option is called "disable-ccid-driver"
and not "disabled-..."

> reader-port 32768

That is a very unlikley reader port sepcification  you need to use the
strings as shown by PC/SC.  If you run 2.2

  gpg-connect-agent 'scd getinfo reader_list' /bye

may give you a list of available reader.

> gpg: selecting card failed

Likely with the above reader port.


Shalom-Salam,

  Werner

--
The pioneers of a warless world are the youth that
refuse military service.            - A. Einstein
Re: Troubleshooting help [ In reply to ]
Am Freitag 11 November 2022 11:58:42 schrieb Andrea Lenarduzzi via
Gnupg-users:
> gpg: selecting card failed: with #reader-port 32768 and disable-ccid-driver

You probably know that -v (several times) and --debug-all
on many GnuPG binaries can greatly increase the verbosity and thus
help to see more.

Bernhard

--
https://intevation.de/~bernhard   +49 541 33 508 3-3
Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998
Geschäftsführer Frank Koormann, Bernhard Reiter
Re: Troubleshooting help [ In reply to ]
On Fri, 11 Nov 2022 10:58, Andrea Lenarduzzi said:
> Thank you
> gpg-connect-agent 'scd getinfo reader_list' /byeD 058F:9540:X:0%0A076B:3031:X:0%0AOK

Unencoding the above list:

058F:9540:X:0
076B:3031:X:0

Thus you have two reader and you need to either use

--8<---------------cut here---------------start------------->8---
reader-port 058F:9540:X:0
--8<---------------cut here---------------end--------------->8---

or

--8<---------------cut here---------------start------------->8---
reader-port 076B:3031:X:0
--8<---------------cut here---------------end--------------->8---

into your ~/.gnupg/scdameon.con and restart the daemon (gpgconf --kill
all)


Shalom-Salam,

Werner

--
The pioneers of a warless world are the youth that
refuse military service. - A. Einstein
Re: Troubleshooting help [ In reply to ]
Thank you.Now a FSFE Card is read.How can I write a .pgp on virgin card?
Thank you
Il venerdì 11 novembre 2022 alle ore 15:38:08 CET, Werner Koch <wk@gnupg.org> ha scritto:

On Fri, 11 Nov 2022 10:58, Andrea Lenarduzzi said:
>  Thank you
> gpg-connect-agent 'scd getinfo reader_list' /byeD 058F:9540:X:0%0A076B:3031:X:0%0AOK

Unencoding the above list:

058F:9540:X:0
076B:3031:X:0

Thus you have two reader and you need to either use

--8<---------------cut here---------------start------------->8---
reader-port 058F:9540:X:0
--8<---------------cut here---------------end--------------->8---

or

--8<---------------cut here---------------start------------->8---
reader-port 076B:3031:X:0
--8<---------------cut here---------------end--------------->8---

into your ~/.gnupg/scdameon.con and restart the daemon (gpgconf --kill
all)


Shalom-Salam,

  Werner

--
The pioneers of a warless world are the youth that
refuse military service.            - A. Einstein