Re: How to debug Yubikey communication

2021-11-13 Thread Kamil Jońca
Kamil Jońca  writes:

> I have strange problem.
>
> I use Yubikey 5 with OATH and gpg key applications configured on it.
>
> In general it works (i.e. I got oath codes and can use gpg to
> encrypt/decrypt messages.)
> But when this key is in usb port it "gold circle" lights withut any
> visible reason.

After some deeper digging I think I found "guilty"

It was "security device" in firefox
--8<---cut here---start->8---
library=/usr/lib/x86_64-linux-gnu/onepin-opensc-pkcs11.so
name=OpenSC smartcard framework (0.22)
--8<---cut here---end--->8---

which used library from opensc-pkcs11 package.


KJ

-- 
http://wolnelektury.pl/wesprzyj/teraz/



Re: How to debug Yubikey communication

2021-11-13 Thread Kamil Jońca
Teemu Likonen  writes:

> * 2021-11-13 18:23:13+0100, Kamil Jońca wrote:
>
>> I use Yubikey 5 with OATH and gpg key applications configured on it.
>
>> How can I debug communication with this key?
>
> Edit ~/.gnupg/scdaemon.conf file and add lines there:
>
> debug-level 8
> log-file /tmp/scdaemon.log
>
> You should probably read some of the "man scdaemon" manual too.
>
> I don't know about your actual problem and probably can't help with PGP

So do I :/
I even does not know if it is related to u2f/gpg/oath
KJ

http://wolnelektury.pl/wesprzyj/teraz/



Re: How to debug Yubikey communication

2021-11-13 Thread Teemu Likonen
* 2021-11-13 18:23:13+0100, Kamil Jońca wrote:

> I use Yubikey 5 with OATH and gpg key applications configured on it.

> How can I debug communication with this key?

Edit ~/.gnupg/scdaemon.conf file and add lines there:

debug-level 8
log-file /tmp/scdaemon.log

You should probably read some of the "man scdaemon" manual too.

I don't know about your actual problem and probably can't help with PGP
smart cards. In addition to this mailing list gnupg-users list is a good
option too.

https://lists.gnupg.org/mailman/listinfo/gnupg-users

-- 
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: 6965F03973F0D4CA22B9410F0F2CAE0E07608462


signature.asc
Description: PGP signature