NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

OpenPGP Card (USB) in NetBSD 10.0



Hi everyone

I am trying to setup an OpenPGP Smartcard. AFAICT, nothing of the
sort is discussed in the FAQs or in 'The Guide'.

What I have done so far (I am, as stated, using NetBSD 10.0 release)

1.- Install gnupg, which also installs scdaemon;
2.- Install pcscd and ccid just in case;
3.- Connect the USB smart card, of course.

Here to the tricky part: GPG Documentation states that one should use
EITHER gnupg's built-in scdaemon OR to use pcscd+ccid, the rationale
behind it being that they interfere with each other since they are both
trying to take control of the smart card.

What I have tried:

a) Bring up pcscd, either manually with rc.d or setting pcscd to YES in
my rc.conf. In this case, I put 'disable-ccid' in my scdaemon.conf .

OR

b) Completely disable pcscd and just issue a 'gpg --card-edit' command.

...but: either way the command gpg --card-edit fails, even though,
according to dmesg, the usb card is recognised without trouble.
In the first case, it complains that the operation is not supported by
the device. In the second one, even though I can clearly see that
scdaemon is running after issuing the command, gpg still complains that
'the service is not running' - and yes, same happens with both a common
user (albeit one on the wheel group) and with root, so it is not a
permissions issue.

Am I missing something here? Has anyone managed to get an OpenPGP SC
running?

Thanks a lot in advance!



Home | Main Index | Thread Index | Old Index