jca b59233c341 Remove gnupg-1.4 and replace it with gnupg-2
gnupg-1.4 is not developed actively anymore, and new software expects
a modern "gpg" executable, which leads to pointless patches in the ports
tree.  Move the various users of security/gnupg2 to security/gnupg and
zap patches that forced the use of "gpg2".

Crusade started by edd@ (security/gnupg maintainer), gnupg->gnupg2 test
reports from semarie@, giovanni@ and solene@, input and bulk build by
sthen@.  ok sthen@ edd@ (maintainer)
2020-10-05 19:46:17 +00:00
..

$OpenBSD: README,v 1.1 2020/10/05 19:46:17 jca Exp $

+-----------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
+-----------------------------------------------------------------------

In order to use a card reader other than the few ones supported by
GnuPG's internal CCID driver, the ccid, pcsc-lite and pcsc-tools packages
need to be installed.

Example YubiKey 4 Setup Procedure
=================================

Install required packages, enable and start pcscd(8) PC/SC smartcard daemon:

    # pkg_add ccid pcsc-lite pcsc-tools
    # rcctl enable pcscd
    # rcctl start pcscd

Find the reader with YubiKey:

    $ pcsc_scan -n
    PC/SC device scanner
    V 1.4.27 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau@free.fr>
    Compiled with PC/SC lite version: 1.8.20
    Using reader plug'n play mechanism
    Scanning present readers...
    0: Yubico Yubikey 4 OTP+U2F+CCID 00 00

    Sun Apr 23 15:15:40 2017
    Reader 0: Yubico Yubikey 4 OTP+U2F+CCID 00 00
      Card state: Card inserted, Exclusive Mode,
      ATR: 3B F8 13 00 00 81 31 FE 15 59 75 62 69 6B 65 79 34 D4
    #Ctrl+C

Configure scdaemon(1) smartcard daemon to use this reader:

    $ echo "reader-port \"Yubico Yubikey 4 OTP+U2F+CCID 00 0\"" >> \
	~/.gnupg/scdaemon.conf

Check if the YubiKey is recognized by GnuPG:

    $ gpg2 --card-status
    Reader ...........: Yubico Yubikey 4 OTP U2F CCID 00 00