아파치를 확인할 때 "이 키는 신뢰할 수 있는 서명으로 인증되지 않았습니다."라는 경고 메시지가 나타납니다.
wget https://downloads.apache.org/accumulo/1.10.2/accumulo-1.10.2-bin.tar.gz
wget https://downloads.apache.org/accumulo/1.10.2/accumulo-1.10.2-bin.tar.gz.asc
wget https://downloads.apache.org/accumulo/KEYS
gpg --import KEYS
gpg --verify accumulo-1.10.2-bin.tar.gz.asc accumulo-1.10.2-bin.tar.gz
오류 메시지가 나타납니다:
gpg: Signature made Tue 08 Feb 2022 11:04:00 PM HKT
gpg: using RSA key 8CC4F8A2B29C2B040F2B835D6F0CDAE700B6899D
gpg: Good signature from "Christopher L Tubbs II (Christopher) <[email protected]>" [unknown]
gpg: aka "Christopher L Tubbs II (Developer) <[email protected]>" [unknown]
gpg: aka "Christopher L Tubbs II (Developer) <[email protected]>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 8CC4 F8A2 B29C 2B04 0F2B 835D 6F0C DAE7 00B6 899D
나는 그것을 완전히 신뢰하고 싶습니다:
gpg --edit-key 8CC4F8A2B29C2B040F2B835D6F0CDAE700B6899D
gpg (GnuPG) 2.2.27; Copyright (C) 2021 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.
pub rsa4096/6F0CDAE700B6899D
created: 2012-10-13 expires: 2024-01-12 usage: SC
trust: full validity: unknown
sub rsa4096/2FFC0085C23D3DA9
created: 2012-10-13 expires: 2024-01-12 usage: E
sub rsa4096/4417A0C14245D003
created: 2013-04-28 expires: 2024-01-12 usage: A
[ unknown] (1). Christopher L Tubbs II (Christopher) <[email protected]>
[ unknown] (2) Christopher L Tubbs II (Developer) <[email protected]>
[ unknown] (3) Christopher L Tubbs II (Developer) <[email protected]>
gpg> trust
pub rsa4096/6F0CDAE700B6899D
created: 2012-10-13 expires: 2024-01-12 usage: SC
trust: full validity: unknown
sub rsa4096/2FFC0085C23D3DA9
created: 2012-10-13 expires: 2024-01-12 usage: E
sub rsa4096/4417A0C14245D003
created: 2013-04-28 expires: 2024-01-12 usage: A
[ unknown] (1). Christopher L Tubbs II (Christopher) <[email protected]>
[ unknown] (2) Christopher L Tubbs II (Developer) <[email protected]>
[ unknown] (3) Christopher L Tubbs II (Developer) <[email protected]>
Please decide how far you trust this user to correctly verify other users' keys
(by looking at passports, checking fingerprints from different sources, etc.)
1 = I don't know or won't say
2 = I do NOT trust
3 = I trust marginally
4 = I trust fully
5 = I trust ultimately
m = back to the main menu
Your decision? 4
pub rsa4096/6F0CDAE700B6899D
created: 2012-10-13 expires: 2024-01-12 usage: SC
trust: full validity: unknown
sub rsa4096/2FFC0085C23D3DA9
created: 2012-10-13 expires: 2024-01-12 usage: E
sub rsa4096/4417A0C14245D003
created: 2013-04-28 expires: 2024-01-12 usage: A
[ unknown] (1). Christopher L Tubbs II (Christopher) <[email protected]>
[ unknown] (2) Christopher L Tubbs II (Developer) <[email protected]>
[ unknown] (3) Christopher L Tubbs II (Developer) <[email protected]>
gpg> quit
그런 다음 다시 확인하십시오.
gpg --verify accumulo-1.10.2-bin.tar.gz.asc accumulo-1.10.2-bin.tar.gz
gpg: Signature made Tue 08 Feb 2022 11:04:00 PM HKT
gpg: using RSA key 8CC4F8A2B29C2B040F2B835D6F0CDAE700B6899D
gpg: Good signature from "Christopher L Tubbs II (Christopher) <[email protected]>" [unknown]
gpg: aka "Christopher L Tubbs II (Developer) <[email protected]>" [unknown]
gpg: aka "Christopher L Tubbs II (Developer) <[email protected]>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 8CC4 F8A2 B29C 2B04 0F2B 835D 6F0C DAE7 00B6 899D
아파치를 확인할 때 경고 메시지를 표시하지 않는 방법은 무엇입니까?
답변1
신뢰를 최종(5)으로 설정하거나 키에 서명하면 문제가 해결됩니다(하지만아래 경고를 참조하세요! ).
옵션 1: 신뢰를 최종으로 설정
$ gpg --edit-key 8CC4F8A2B29C2B040F2B835D6F0CDAE700B6899D
[...]
gpg> trust
[...]
Please decide how far you trust this user to correctly verify other users' keys
(by looking at passports, checking fingerprints from different sources, etc.)
1 = I don't know or won't say
2 = I do NOT trust
3 = I trust marginally
4 = I trust fully
5 = I trust ultimately
m = back to the main menu
Your decision? 5
Do you really want to set this key to ultimate trust? (y/N) y
[...]
gpg> quit
신뢰 프롬프트에 5를 입력했습니다. 이제 verify 명령을 실행하면 다음과 같습니다.
$ gpg --verify accumulo-1.10.2-bin.tar.gz.asc accumulo-1.10.2-bin.tar.gz
출력에 더 이상 경고가 없습니다. 반면에 나는 신뢰를 최종으로 설정할 때 거짓말을 했습니다.
옵션 2: 서명 키
궁극적으로 키를 신뢰하지 않기 때문에 궁극적으로 신뢰할 수 있는 자신의 키로 키에 서명하는 것이 더 정확합니다. 먼저 조사를 수행하려면 경고를 참조하세요. 서명 키:
$ gpg --sign-key 8CC4F8A2B29C2B040F2B835D6F0CDAE700B6899D
[...]
Really sign all user IDs? (y/N) y
[...]
Really sign? (y/N) y
verify 명령을 실행하면 경고가 표시되지 않으며 이번에는 거짓말을 할 필요가 없습니다.
경고하다
이 경고는 정당한 이유가 있다는 점에 유의하세요. 키에 서명하거나 궁극적으로 신뢰할 수 있는 것으로 표시하기 전에 키를 신뢰할 수 있는지 확인하는 데 더 많은 노력을 기울이고 싶다면,이 security.stackexchange.com 스레드좋은 출발점입니다.