使用pgp或sha签名验证_如何在Linux中使用PGP验证文件和签名?

本文介绍了如何使用GnuPG在Linux中验证从互联网下载的文件,特别是Apache源代码的PGP签名。通过查找PGP信息、下载源代码、验证源代码并添加公共密钥服务器,确保文件的完整性和安全性。
摘要由CSDN通过智能技术生成
使用pgp或sha签名验证

使用pgp或sha签名验证

GnuPG is an opensource and popular alternative to the PGP. PGP provides encryption-related function. PGP provides a hash function like standard Linux packages. We will look ow to verify files downloaded from the internet with their PGP signatures to verify.

GnuPG是PGP的开源和流行替代方案。 PGP提供与加密有关的功能。 PGP提供了类似于标准Linux软件包的哈希函数。 我们将用PGP签名验证从Internet下载的文件。

查找PGP信息 (Find PGP Information)

In this example, we will use the Apache source code. Apache PGP signature can be found and downloaded like below.

在此示例中,我们将使用Apache源代码。 可以如下找到并下载Apache PGP签名。

$ wget https://www.apache.org/dist/httpd/httpd-2.4.38.tar.bz2.asc
Find PGP Information
Find PGP Information
查找PGP信息

We can see that the signature file have asc extension with the same name with the compressed source code file.

我们可以看到签名文件具有与压缩的源代码文件同名的asc扩展名。

下载Apache源码 (Download Apache Source)

We will download Apache source code related with previously downloaded PGP signature.

我们将下载与先前下载的PGP签名相关的Apache源代码。

$ wget https://www.apache.org/dist/httpd/httpd-2.4.38.tar.bz2
Download Apache Source
Download Apache Source
下载Apache源码
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值