Hash-Algorithm-SHA1-Not-Available

Rocky Linux 9 导入 GPG key,报错 warning: Signature not supported. Hash algorithm SHA1 not available.查询资料得知,SHA1算法已被弃用。

  • 如果需要导入,可以修改策略:update-crypto-policies --set DEFAULT:SHA1
  • 导入后恢复策略:update-crypto-policies --set DEFAULT

参考资料:

https://www.redhat.com/en/blog/rhel-security-sha-1-package-signatures-distrusted-rhel-9