--===============2878506429954380057== Content-Type: multipart/signed; boundary="nextPart4901136.31r3eYUQgx"; micalg="pgp-sha512"; protocol="application/pgp-signature" --nextPart4901136.31r3eYUQgx Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii"; protected-headers="v1" From: Ingo =?ISO-8859-1?Q?Kl=F6cker?= To: gnupg-users@gnupg.org Reply-To: gnupg-users@gnupg.org Subject: Re: Incompatible secret key format between 2.4.4 and 2.2.27? Date: Sun, 11 Feb 2024 19:08:10 +0100 Message-ID: <6021024.lOV4Wx5bFT@daneel> MIME-Version: 1.0 On Sonntag, 11. Februar 2024 02:05:52 CET mlist_e9e869bc--- via Gnupg-users wrote: > I'm trying to import a key generated from GPG 2.4.4 to 2.2.27 but > unsuccessful. > > Upon importing, it returns `gpg: no valid OpenPGP data found.` > > I tried with compliance options but it does nothing. > > Command I used: > > - export: `gpg -a --export-secret-subkey | gpg -a -c > --cipher-algo AES --force-mdc -o ` > - import: `gpg --decrypt -o - keys.sec.asc | gpg --import -` > > What else I can do? I can't update the GPG version because one of my > import device is an Android phone which stuck at 2.2.27 for quite a long > time. Are you sure that the problem isn't the decryption? I checked the code and this error message is emitted by the armor/dearmor code. My guess is that the decryption fails and therefore outputs nothing and importing nothing results exactly in the above error message: ``` $ echo "" | gpg --import - gpg: no valid OpenPGP data found. gpg: Total number processed: 0 ``` Regards, Ingo --nextPart4901136.31r3eYUQgx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTbjgIOMowwlCBgvyGxb1mVFkdKugUCZckNCgAKCRCxb1mVFkdK ut6MAP9BD97oylpgD8mpkLIYzDGuPx3V/yK3jpQm8ZZiHQbA0QEAt/ZOxq0cH3mz 3E/ScoGm2/ekVxSckoM4uOe3WjdTMwg= =ZHKO -----END PGP SIGNATURE----- --nextPart4901136.31r3eYUQgx-- --===============2878506429954380057== 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 --===============2878506429954380057==--