Usage: CertUtil [Options] -hashfile InFile [HashAlgorithm] Generate and display cryptographic hash over a file
Options: -Unicode -- Write redirected output in Unicode -gmt -- Display times as GMT -seconds -- Display times with seconds and milliseconds -v -- Verbose operation -privatekey -- Display password and private key data -pin PIN -- Smart Card PIN -sid WELL_KNOWN_SID_TYPE -- Numeric SID 22 -- Local System 23 -- Local Service 24 -- Network Service
➜ gpg --edit-key D8692123C4065DEA5E0F3AB5249B39D24F25E3B6 gpg (GnuPG) 2.2.19; Copyright (C) 2019 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.
Signing a key tells your software that you trust the key that you have been provided with and that you have verified that it is associated with the person in question.
Step 3:使用 signature file 校验 Tarball
1 2 3 4 5 6 7 8 9 10
➜ gpg --verify gnupg-2.2.29.tar.bz2.sig gpg: assuming signed data in 'gnupg-2.2.29.tar.bz2' gpg: Signature made Sun Jul 4 22:54:50 2021 CST gpg: using EDDSA key 6DAA6E64A76D2840571B4902528897B826403ADA gpg: checking the trustdb gpg: marginals needed: 3 completes needed: 1 trust model: pgp gpg: depth: 0 valid: 2 signed: 2 trust: 0-, 0q, 0n, 0m, 0f, 2u gpg: depth: 1 valid: 2 signed: 0 trust: 2-, 0q, 0n, 0m, 0f, 0u gpg: next trustdb check due at 2021-12-31 gpg: Good signature from "Werner Koch (dist signing 2020)" [full]
➜ gpg --edit-key 6DAA6E64A76D2840571B4902528897B826403ADA D8692123C4065DEA5E0F3AB5249B39D24F25E3B6 gpg (GnuPG) 2.2.19; Copyright (C) 2019 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 ed25519/528897B826403ADA created: 2020-08-24 expires: 2030-06-30 usage: SC trust: undefined validity: full [ full ] (1). Werner Koch (dist signing 2020)
Invalid command (try "help") gpg> trust pub ed25519/528897B826403ADA created: 2020-08-24 expires: 2030-06-30 usage: SC trust: undefined validity: full [ full ] (1). Werner Koch (dist signing 2020)
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 ed25519/528897B826403ADA created: 2020-08-24 expires: 2030-06-30 usage: SC trust: full validity: full [ full ] (1). Werner Koch (dist signing 2020) Please note that the shown key validity is not necessarily correct unless you restart the program. gpg> save Key not changed so no update needed.
➜ gpg --edit-key D8692123C4065DEA5E0F3AB5249B39D24F25E3B6 gpg (GnuPG) 2.2.19; Copyright (C) 2019 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: checking the trustdb gpg: marginals needed: 3 completes needed: 1 trust model: pgp gpg: depth: 0 valid: 2 signed: 2 trust: 0-, 0q, 0n, 0m, 0f, 2u gpg: depth: 1 valid: 2 signed: 0 trust: 0-, 1q, 0n, 0m, 1f, 0u gpg: next trustdb check due at 2021-12-31 pub rsa2048/249B39D24F25E3B6 created: 2011-01-12 expires: 2021-12-31 usage: SC trust: undefined validity: full [ full ] (1). Werner Koch (dist sig) gpg> trust pub rsa2048/249B39D24F25E3B6 created: 2011-01-12 expires: 2021-12-31 usage: SC trust: undefined validity: full [ full ] (1). Werner Koch (dist sig)
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 rsa2048/249B39D24F25E3B6 created: 2011-01-12 expires: 2021-12-31 usage: SC trust: full validity: full [ full ] (1). Werner Koch (dist sig) Please note that the shown key validity is not necessarily correct unless you restart the program. gpg> save
➜ gpg --verify gnupg-2.2.29.tar.bz2.sig gpg: assuming signed data in 'gnupg-2.2.29.tar.bz2' gpg: Signature made Sun Jul 4 22:54:50 2021 CST gpg: using EDDSA key 6DAA6E64A76D2840571B4902528897B826403ADA gpg: checking the trustdb gpg: marginals needed: 3 completes needed: 1 trust model: pgp gpg: depth: 0 valid: 2 signed: 2 trust: 0-, 0q, 0n, 0m, 0f, 2u gpg: depth: 1 valid: 2 signed: 0 trust: 0-, 0q, 0n, 0m, 2f, 0u gpg: next trustdb check due at 2021-12-31 gpg: Good signature from "Werner Koch (dist signing 2020)" [full]