验证 IBM Storage Protect Server服务器包的数字签名
IBM Storage Protect 服务器软件包均经过数字签名,以确保其完整性和真实性。
为确认下载的服务器软件包未被篡改,请按照以下步骤验证其数字签名。
- 请从 IBM 官方下载站点下载服务器软件包及相应的签名文件(
.sig)。 下载的签名文件名为 Base64-encoded。 对其进行解码以获取二进制签名文件。
运行以下命令:
openssl enc -d -A -base64 -in <signature_file>.sig -out <decoded_signature_file>.sig例如,openssl enc -d -A -base64 -in 8.2.1.000-IBM-SPSRV-Linuxx86_64-078.bin.sig -out /tmp/8.2.1.000-IBM-SPSRV-Linuxx86_64-078.bin.sig使用解码后的签名文件和公钥来验证下载包的完整性。
运行以下命令:openssl dgst -verify public.pem -keyform PEM -sha256 -signature <decoded_signature_file>.sig -binary <package_file>例如,如果包验证成功,输出将显示:openssl dgst -verify public.pem -keyform PEM -sha256 -signature /tmp/8.2.1.000-IBM-SPSRV-Linuxx86_64-078.bin.sig --binary 8.2.1.000-IBM-SPSRV-Linuxx86_64-078.bin
如果验证失败,输出将显示:Verified OKVerification Failure