<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>centos 8 Archives - Tech Antidote</title>
	<atom:link href="https://techantidote.com/tag/centos-8/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>‎ &#124; LINUX &#124; Tech &#124; Security &#124;</description>
	<lastBuildDate>Sun, 07 Jun 2020 17:33:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>

<image>
	<url>https://techantidote.com/wp-content/uploads/2016/02/cropped-google-plus-profile-picture-32x32.png</url>
	<title>centos 8 Archives - Tech Antidote</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">106369530</site>	<item>
		<title>How to verify GPG key of a downloaded CentOS ISO and verify its checksum [Detailed]</title>
		<link>https://techantidote.com/how-to-verify-gpg-key-of-a-downloaded-centos-iso-and-verify-its-checksum-detailed/</link>
					<comments>https://techantidote.com/how-to-verify-gpg-key-of-a-downloaded-centos-iso-and-verify-its-checksum-detailed/#comments</comments>
		
		<dc:creator><![CDATA[]]></dc:creator>
		<pubDate>Sun, 07 Jun 2020 17:33:36 +0000</pubDate>
				<category><![CDATA[Linux / Redhat]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[centos 8]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[pgp]]></category>
		<category><![CDATA[sha256]]></category>
		<category><![CDATA[verify]]></category>
		<guid isPermaLink="false">https://techantidote.com/?p=3153</guid>

					<description><![CDATA[<p>This is a tutorial on how to check checksums of a CentOS image using GPG to verify the integrity of a downloaded CentOS ISO image. 1. Download the public key from the CentOS website Open a terminal and create a directory where you need to download the ISO and the checksum file. mkdir validate &#38;&#38; &#8230; <a href="https://techantidote.com/how-to-verify-gpg-key-of-a-downloaded-centos-iso-and-verify-its-checksum-detailed/" class="more-link">Continue reading <span class="screen-reader-text">How to verify GPG key of a downloaded CentOS ISO and verify its checksum [Detailed]</span> <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a href="https://techantidote.com/how-to-verify-gpg-key-of-a-downloaded-centos-iso-and-verify-its-checksum-detailed/">How to verify GPG key of a downloaded CentOS ISO and verify its checksum [Detailed]</a> appeared first on <a href="https://techantidote.com">Tech Antidote</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This is a tutorial on how to check checksums of a CentOS image using GPG to verify the integrity of a downloaded CentOS ISO image.</p>
<p><span style="color: #3366ff;"><strong>1. Download the public key from the CentOS website</strong></span></p>
<p>Open a terminal and create a directory where you need to download the ISO and the checksum file.</p>
<pre><strong>mkdir validate &amp;&amp; cd validate/</strong></pre>
<p>Download the GPG public key from the official CentOS website. (You can find the full list of CentOS keys <a href="https://www.centos.org/keys/" target="_blank" rel="noopener noreferrer">here</a>. )</p>
<pre><strong>wget https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official</strong></pre>
<p>Below are the contents of the downloaded file which shows that this is a public key.</p>
<pre><strong>cat RPM-GPG-KEY-CentOS-Official</strong>
-----<span style="color: #ff0000;">BEGIN PGP PUBLIC KEY BLOCK</span><span style="color: #ff6600;">-----
</span>Version: GnuPG v2.0.22 (GNU/Linux)

mQINBFzMWxkBEADHrskpBgN9OphmhRkc7P/YrsAGSvvl7kfu+e9KAaU6f5MeAVyn
rIoM43syyGkgFyWgjZM8/rur7EMPY2yt+2q/1ZfLVCRn9856JqTIq0XRpDUe4nKQ
8BlA7wDVZoSDxUZkSuTIyExbDf0cpw89Tcf62Mxmi8jh74vRlPy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
q4HTqyVpyuzMXsFpJ9L/FqH2DJ4exGGpBv00ba/Zauy7GsqOc5PnNBsYaHCply0X
407DRx51t9YwYI/ttValuehq9+gRJpOTTKp6AjZn/a5Yt3h6jDgpNfM/EyLFIY9z
V6CXqQQ/8JRvaik/JsGCf+eeLZOw4koIjZGEAg04iuyNTjhx0e/QHEVcYAqNLhXG
rCTTbCn3NSUO9qxEXC+K/1m1kaXoCGA0UWlVGZ1JSifbbMx0yxq/brpEZPUYm+32
o8XfbocBWljFUJ+6aljTvZ3LQLKTSPW7TFO+GXycAOmCGhlXh2tlc6iTc41PACqy
yy+mHmSv
=kkH7
-----<span style="color: #ff0000;">END PGP PUBLIC KEY BLOCK</span>-----
</pre>
<p><span style="color: #3366ff;"><strong>2. Check and verify the fingerprint of the downloaded public key.</strong></span></p>
<p>Using gpg, check the fingerprint of the downloaded public key file using the following command:</p>
<pre><strong>gpg --dry-run --import --import-options import-show  ./RPM-GPG-KEY-CentOS-Official</strong>
pub   rsa4096 2019-05-03 [SC]
      <span style="color: #ff0000;">99DB70FAE1D7CE227FB6488205B555B38483C65D</span>
uid                      CentOS (CentOS Official Signing Key) &lt;security@centos.org&gt;

gpg: Total number processed: 1
</pre>
<p>From the output, the fingerprint is <span style="color: #ff0000;">99DB70FAE1D7CE227FB6488205B555B38483C65D</span>.</p>
<p>Now, we need to verify if the fingerprint matches the one documented in official CentOS page.</p>
<p>So, go to <a href="https://www.centos.org/keys/" target="_blank" rel="noopener noreferrer"><strong>https://www.centos.org/keys/</strong> </a>and search for the above fingerprint.</p>
<p>&nbsp;</p>
<p><img decoding="async" data-attachment-id="3164" data-permalink="https://techantidote.com/how-to-verify-gpg-key-of-a-downloaded-centos-iso-and-verify-its-checksum-detailed/fingerprint-match/" data-orig-file="https://techantidote.com/wp-content/uploads/2020/06/fingerprint-match-e1591549698486.png" data-orig-size="1035,217" data-comments-opened="1" data-image-title="fingerprint-match" data-image-description="" data-image-caption="" data-large-file="https://techantidote.com/wp-content/uploads/2020/06/fingerprint-match-e1591549698486-1024x215.png" class="alignnone wp-image-3164 size-medium" src="https://techantidote.com/wp-content/uploads/2020/06/fingerprint-match-e1591549698486-300x63.png" alt="verify fingerprint matches from centos official keys documentation page" width="300" height="63" srcset="https://techantidote.com/wp-content/uploads/2020/06/fingerprint-match-e1591549698486-300x63.png 300w, https://techantidote.com/wp-content/uploads/2020/06/fingerprint-match-e1591549698486-1024x215.png 1024w, https://techantidote.com/wp-content/uploads/2020/06/fingerprint-match-e1591549698486-768x161.png 768w, https://techantidote.com/wp-content/uploads/2020/06/fingerprint-match-e1591549698486-210x44.png 210w, https://techantidote.com/wp-content/uploads/2020/06/fingerprint-match-e1591549698486.png 1035w" sizes="(max-width: 300px) 100vw, 300px" /></p>
<p>[<strong>Note:</strong> You could split the fingerprint into blocks of four characters as shown below: <span style="color: #ff0000;">99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D </span>]<span style="color: #ff0000;"><br />
</span></p>
<p>If the fingerprint matches the one documented in the official CentOS key documentation page, then the public key is untampered and can be trusted.</p>
<p><strong>[Note</strong>: If you are using a newer version of gpg, then you can use &#8220;<span style="color: #ff0000;">gpg &#8211;quiet &#8211;with-fingerprint ./RPM-GPG-KEY-CentOS-Official</span>&#8220;. I did not use the <em>&#8211;with-fingerprint</em> flag as the version of gpg installed in my machine does not show the fingerprints with the <em>&#8211;with-fingerprint</em> flag.]</p>
<p><span style="color: #3366ff;"><strong>3. Import the Public key to your GNUPG keyring</strong></span></p>
<p>Now, import the downloaded key to your gnupg keyring.</p>
<pre><strong>gpg --import ./RPM-GPG-KEY-CentOS-Official</strong>
gpg: key 05B555B38483C65D: public key "CentOS (CentOS Official Signing Key) &lt;security@centos.org&gt;" imported
gpg: <span style="color: #ff0000;">Total number processed: 1</span>
gpg:               <span style="color: #ff0000;">imported</span>: <span style="color: #ff0000;">1</span></pre>
<p>The above shows that it processed and <em>imported 1 key</em> to you local store.</p>
<p>To list the keys currently in your gnupng keyring, you can use the following:</p>
<pre><strong>gpg --list-keys</strong>
/home/r3con/.gnupg/pubring.kbx
------------------------------
pub rsa4096 2019-05-03 [SC]
<span style="color: #ff0000;">99DB70FAE1D7CE227FB6488205B555B38483C65D</span>
uid [ unknown] CentOS (CentOS Official Signing Key) &lt;security@centos.org
</pre>
<p><span style="color: #3366ff;"><strong>4. Download the CentOS ISO image</strong></span></p>
<p>Download the CentOS ISO file:</p>
<pre><strong>wget http://mirrors.piconets.webwerks.in/centos-mirror/8.1.1911/isos/x86_64/CentOS-8.1.1911-x86_64-dvd1.iso
</strong></pre>
<p><span style="color: #3366ff;">5. <strong>Download the CHECKSUM.asc file and verify that it is not tampered with.</strong></span></p>
<p>Once the download is complete, download the &#8220;CHECKSUM.asc&#8221; file from the CentOS website:</p>
<pre><strong>wget http://mirror.centos.org/centos/8/isos/x86_64/CHECKSUM.asc
</strong></pre>
<p>If you read the contents of the CHECKSUMS.asc file, you will see that it contains a PGP signed message with the checksums for the CentOS ISO image.</p>
<pre><strong>cat CHECKSUM.asc</strong>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

# CentOS-8.1.1911-x86_64-boot.iso: 625999872 bytes
SHA256 (CentOS-8.1.1911-x86_64-boot.iso) = 7fea13202bf2f26989df4175aace8fdc16e1137f7961c33512cbfad844008948
# <span style="color: #ff0000;">CentOS-8.1.1911-x86_64-dvd1.iso</span>: 7554990080 bytes
<span style="color: #ff0000;">SHA256 </span>(<span style="color: #ff0000;">CentOS-8.1.1911-x86_64-dvd1.iso</span>) = <span style="color: #ff0000;">3ee3f4ea1538e026fff763e2b284a6f20b259d91d1ad5688f5783a67d279423b</span>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIVAwUBXh3OvAW1VbOEg8ZdAQihSxAArC0gfNTr0bWPOT/k40lTSoxgDF0qGn4+
d5j9noV3c0Xqd4Um/hxs7ha/qTg82DISYC8+5XHRvU3k156Mxh7dy4FoPopwItoc
lpMjnXwDYC/Iptp1XHiD2sun+z+omC2B+DcZergDwrrJzb7CZzxGr84Ztl6Wd54s
jCI3dQEsakQUEEuekr3mHtB1R4QHHaRwVwUJSzRQYLF3XiCq788IUaI2sf5kHXsg
BxWhzHsBCPG4/FC0ev9ujp5OP/j2FZq4S0cp1+53t/BauyGPOdbvQw71xKsHZQ3J
G9TNaFzlAqZJDKpz+XgjQ1V/7kKaFY3dCbxITxbOdSGAMh25cbWd2AamnCFuTzIq
vpWY8xWgx6kQ8aLI+VekOYYl4zZswmJBBogXDURCJTqRY6efkT8qhuWVS/obWjBL
L3uLL6w4ZkkatUZwglcj2+BhXefAGZgfBExI/xUHFzyXdB8Jv/YwYTTEsREZhf+T
8ggDOOznlUvrNz/atYKwNqAWbC2oY5UXL2OhDznm3lXwQPJG9vZ2Hx6UFpEuuBOR
m407o8rfosEbnHgxh9qQ2gnlk+m30VZqhr2dQnOibdY7YtHqk++5snr+yDmXKWDU
r08BLy0qGdI8CDxOS0DDb5MmIa5xc2c3w0Jt5q+H9tD7VAlg5uJBju0GwXSsiWHf
PlXTxMDETyY=
=TBYO
-----END PGP SIGNATURE-----
</pre>
<p>To verify that downloaded &#8220;CHECSUMS.asc&#8221; file is not tampered and is indeed from CentOS, use the <span style="color: #ff0000;">&#8211;verify</span> flag.</p>
<pre><strong>gpg --verify CHECKSUM.asc
</strong>gpg: Signature made Tue Jan 14 19:52:52 2020 IST
gpg: using RSA key 05B555B38483C65D
<span style="color: #ff0000;">gpg: Good signature from "CentOS (CentOS Official Signing Key) &lt;security@centos.org&gt;" [unknown]</span>
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: <span style="color: #ff0000;">99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D</span></pre>
<p>The above outputs shows the the signature is good and CHECSUM.asc file is good and not tampered.</p>
<p>At this point, you should have the following files in the directory:</p>
<pre><strong>ls -l</strong>
total 7377932
-rwxrwxrwx 1 r3con r3con 1179 Jun 3 11:10 <span style="color: #ff0000;">CHECKSUM.asc</span>
-rwxrwxrwx 1 r3con r3con 7554990080 Jan 4 03:17 <span style="color: #ff0000;">CentOS-8.1.1911-x86_64-dvd1.iso</span>
-rwxrwxrwx 1 r3con r3con 1683 Sep 12 2019 <span style="color: #ff0000;">RPM-GPG-KEY-CentOS-Official
</span></pre>
<p><span style="color: #3366ff;"><strong>6. Verifying the checksum of the downloaded image using the CHECKSUM.asc file.</strong></span></p>
<p>To verify the checksums of the downloaded ISO image using the following command:</p>
<pre><strong>sha256sum -c CHECKSUM.asc 2&gt;&amp;1 | grep OK
</strong>CentOS-8.1.1911-x86_64-dvd1.iso<span style="color: #ff9999;">: <span style="color: #ff0000;">OK</span></span></pre>
<p><img fetchpriority="high" decoding="async" data-attachment-id="3166" data-permalink="https://techantidote.com/how-to-verify-gpg-key-of-a-downloaded-centos-iso-and-verify-its-checksum-detailed/validate-sha256-checksum/" data-orig-file="https://techantidote.com/wp-content/uploads/2020/06/validate-sha256-checksum.png" data-orig-size="654,93" data-comments-opened="1" data-image-title="validate-sha256-checksum" data-image-description="" data-image-caption="" data-large-file="https://techantidote.com/wp-content/uploads/2020/06/validate-sha256-checksum.png" class="alignnone wp-image-3166 size-full" src="https://techantidote.com/wp-content/uploads/2020/06/validate-sha256-checksum.png" alt="succesfull sha256 checksum verification" width="654" height="93" srcset="https://techantidote.com/wp-content/uploads/2020/06/validate-sha256-checksum.png 654w, https://techantidote.com/wp-content/uploads/2020/06/validate-sha256-checksum-300x43.png 300w, https://techantidote.com/wp-content/uploads/2020/06/validate-sha256-checksum-210x30.png 210w" sizes="(max-width: 654px) 100vw, 654px" /></p>
<p>This shows that the checksum matches and the downloaded ISO file is intact or not tampered with.</p>
<p>Hope this helps. Cheers</p>
<p><span style="color: #3366ff;"><strong>Source/Credits/References:</strong></span></p>
<p><a href="https://wiki.centos.org/Download/Verify">CentOS Documentation</a></p>
<p><a href="https://dev.gnupg.org/T2901">GNUPG Fingerprint workaround</a></p>
<p>The post <a href="https://techantidote.com/how-to-verify-gpg-key-of-a-downloaded-centos-iso-and-verify-its-checksum-detailed/">How to verify GPG key of a downloaded CentOS ISO and verify its checksum [Detailed]</a> appeared first on <a href="https://techantidote.com">Tech Antidote</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techantidote.com/how-to-verify-gpg-key-of-a-downloaded-centos-iso-and-verify-its-checksum-detailed/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3153</post-id>	</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: techantidote.com @ 2026-10-22 13:48:22 by W3 Total Cache
-->