From gnupg-users Thu Feb 29 12:40:53 2024 From: Ingo =?ISO-8859-1?Q?Kl=F6cker?= Date: Thu, 29 Feb 2024 12:40:53 +0000 To: gnupg-users Subject: Re: Second OpenPGP-card Message-Id: <2320106.ElGaqSPkdT () daneel> X-MARC-Message: https://marc.info/?l=gnupg-users&m=170921055825441 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============2406462269815887250==" --===============2406462269815887250== Content-Type: multipart/signed; boundary="nextPart4876782.GXAFRqVoOG"; micalg="pgp-sha512"; protocol="application/pgp-signature" --nextPart4876782.GXAFRqVoOG Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii"; protected-headers="v1" From: Ingo =?ISO-8859-1?Q?Kl=F6cker?= To: Werner Koch via Gnupg-users Reply-To: gnupg-users@gnupg.org Subject: Re: Second OpenPGP-card Date: Thu, 29 Feb 2024 13:40:53 +0100 Message-ID: <2320106.ElGaqSPkdT@daneel> In-Reply-To: <87edcwzh42.fsf@jacob.g10code.de> MIME-Version: 1.0 On Mittwoch, 28. Februar 2024 17:30:21 CET Werner Koch via Gnupg-users wrote: > On Wed, 28 Feb 2024 10:55, Matthias Apitz said: > > purism@pureos:~$ cat .password-store/.gpg-id > > CCID L5 > > Which means that it encrypts to "CCID L5". pass parses this using > > while read -r gpg_id; do > gpg_id="${gpg_id%%#*}" # strip comment > [[ -n $gpg_id ]] || continue > GPG_RECIPIENT_ARGS+=( "-r" "$gpg_id" ) > GPG_RECIPIENTS+=( "$gpg_id" ) > done > > The good thing with pass is that it is easy to read. "CCID L5" doesn't strike me as a sufficiently unique identifier for a key. If I add a (secondary) user ID "CCID L5" to my key and trick Matthias into importing it won't pass start encrypting their passwords for my key? My ~/.password-store/.gpg-id contains the fingerprint of my password encryption key. Regards, Ingo --nextPart4876782.GXAFRqVoOG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTbjgIOMowwlCBgvyGxb1mVFkdKugUCZeB7VQAKCRCxb1mVFkdK uqBoAQCZswRgfMDhwdh8dKoeWkYnq09oTnuST8grNmzwFFt7sQD+Ka2s9YjKX8el d966JfhBujF855OUW+bcvo/fbj5PpAE= =QEc1 -----END PGP SIGNATURE----- --nextPart4876782.GXAFRqVoOG-- --===============2406462269815887250== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org https://lists.gnupg.org/mailman/listinfo/gnupg-users --===============2406462269815887250==--