<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>GPG on HiDa</title><link>https://www.0niu.cn/tags/gpg/</link><description>Recent content in GPG on HiDa</description><generator>Hugo -- gohugo.io</generator><language>zh</language><lastBuildDate>Mon, 31 Jul 2023 22:06:38 +0800</lastBuildDate><atom:link href="https://www.0niu.cn/tags/gpg/index.xml" rel="self" type="application/rss+xml"/><item><title>Hash-Algorithm-SHA1-Not-Available</title><link>https://www.0niu.cn/posts/hash-algorithm-sha1-not-available/</link><pubDate>Mon, 31 Jul 2023 22:06:38 +0800</pubDate><guid>https://www.0niu.cn/posts/hash-algorithm-sha1-not-available/</guid><description>&lt;p>Rocky Linux 9 导入 GPG key，报错 &lt;code>warning: Signature not supported. Hash algorithm SHA1 not available.&lt;/code>查询资料得知，SHA1算法已被弃用。&lt;/p>
&lt;ul>
&lt;li>如果需要导入，可以修改策略：&lt;code>update-crypto-policies --set DEFAULT:SHA1&lt;/code>&lt;/li>
&lt;li>导入后恢复策略：&lt;code>update-crypto-policies --set DEFAULT&lt;/code>&lt;/li>
&lt;/ul>
&lt;p>参考资料：&lt;/p>
&lt;p>&lt;a href="https://www.redhat.com/en/blog/rhel-security-sha-1-package-signatures-distrusted-rhel-9">https://www.redhat.com/en/blog/rhel-security-sha-1-package-signatures-distrusted-rhel-9&lt;/a>&lt;/p></description><content>&lt;p>Rocky Linux 9 导入 GPG key，报错 &lt;code>warning: Signature not supported. Hash algorithm SHA1 not available.&lt;/code>查询资料得知，SHA1算法已被弃用。&lt;/p>
&lt;ul>
&lt;li>如果需要导入，可以修改策略：&lt;code>update-crypto-policies --set DEFAULT:SHA1&lt;/code>&lt;/li>
&lt;li>导入后恢复策略：&lt;code>update-crypto-policies --set DEFAULT&lt;/code>&lt;/li>
&lt;/ul>
&lt;p>参考资料：&lt;/p>
&lt;p>&lt;a href="https://www.redhat.com/en/blog/rhel-security-sha-1-package-signatures-distrusted-rhel-9">https://www.redhat.com/en/blog/rhel-security-sha-1-package-signatures-distrusted-rhel-9&lt;/a>&lt;/p></content></item></channel></rss>