我们从 Solaris 迁移到 Linux,在 Solaris 中使用 PGP v6.5.2。我们现在需要在Linux中使用GPG。我安装了带有 libgcrypt v1.4.5 的 GPG 2.0.14。当尝试解密使用 PGP 密钥生成的文件时,由于不支持 IDEA 算法,因此没有发生。所以,我安装了 GPG 2.2.1 和 libgcrypt 1.8.1,其中支持 IDEA。现在,为了进行相同的测试,我需要密钥。我可以使用 GPG 2.0.14 导入密钥(这是在自定义目录中安装 gpg 2.2.1 之前;而不是 /usr/bin)。
在尝试导入旧的 pgp 密钥时,gpg 2.2.1 显示:跳过了 PGP-2 密钥。
$ gpg --import /app/lcdb/mansh_pub.asc
gpg: Total number processed: 1
gpg: skipped PGP-2 keys: 1
我发现了一些线索,表明 gpg 2.2.1 导入的旧格式的密钥 - 这是新功能。
现在,我的问题是:如何使用 gpg2.2.1 导入旧的 pgp 密钥?
以下是我尝试过的:
$ gpg --list-packets mansh_pub.asc
# off=0 ctb=99 tag=6 hlen=3 plen=269
:key packet: [obsolete version 3]
# off=272 ctb=b4 tag=13 hlen=2 plen=51
:user ID packet: "Manish Shrimali"
$ /usr/bin/gpg --list-packets mansh_pub.asc
:public key packet:
version 3, algo 1, created 1158180784, expires 0
pkey[0]: [2048 bits]
pkey[1]: [5 bits]
keyid: C6FDEE2916F3C241
:user ID packet: "Manish Shrimali"
$ gpg --edit-key C6FDEE2916F3C241
gpg (GnuPG) 2.2.1; Copyright (C) 2017 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
gpg: key "C6FDEE2916F3C241" not found: No public key
$ /usr/bin/gpg --edit-key C6FDEE2916F3C241
gpg (GnuPG) 2.0.14; Copyright (C) 2009 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Secret key is available.
pub 2048R/16F3C241 created: 2006-09-13 expires: never usage: SCEA
trust: unknown validity: unknown
[ unknown] (1). Manish Shrimali
Command> passwd
Key is protected.
gpg: protection algorithm 1 (IDEA) is not supported
Can't edit this key: Invalid cipher algorithm
Command> quit
您能否建议如何摆脱这个循环并解决问题?
问候,西里莎。