기존 PGP 키를 GPG로 변환 - [해결됨] [닫음]

기존 PGP 키를 GPG로 변환 - [해결됨] [닫음]

우리는 Solaris에서 PGP v6.5.2를 사용하여 Solaris에서 Linux로 마이그레이션했습니다. 이제 Linux에서 GPG를 사용해야 합니다. libgcrypt v1.4.5와 함께 GPG 2.0.14를 설치했습니다. PGP 키를 사용하여 생성된 파일을 복호화하려고 하면 IDEA 알고리즘이 지원되지 않기 때문에 복호화되지 않습니다. 그래서 IDEA를 지원하는 GPG 2.2.1과 libgcrypt 1.8.1을 설치했습니다. 이제 동일한 테스트를 수행하려면 키가 필요합니다. GPG 2.0.14를 사용하여 키를 가져올 수 있었습니다(/usr/bin이 아닌 사용자 정의 디렉토리에 gpg 2.2.1을 설치하기 전이었습니다).

이전 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

이 악순환에서 벗어나 문제를 해결하는 방법을 제안해 주실 수 있나요?

감사합니다, 시리사.

관련 정보