<?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 7 &#8211; King Host Coupon</title>
	<atom:link href="https://kinghostcoupon.com/tag/centos-7/feed/" rel="self" type="application/rss+xml" />
	<link>https://kinghostcoupon.com</link>
	<description>Domain Hosting VPS/Servers coupon codes</description>
	<lastBuildDate>Fri, 05 Nov 2021 00:45:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.6</generator>
	<item>
		<title>How to Install Let&#8217;s Encrypt SSL for NginX on CentOS 7</title>
		<link>https://kinghostcoupon.com/how-to-install-lets-encrypt-ssl-for-nginx-on-centos-7/</link>
					<comments>https://kinghostcoupon.com/how-to-install-lets-encrypt-ssl-for-nginx-on-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[Anh]]></dc:creator>
		<pubDate>Mon, 01 Nov 2021 17:46:34 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS 7]]></category>
		<category><![CDATA[Let's Encrypt]]></category>
		<category><![CDATA[NginX]]></category>
		<guid isPermaLink="false">https://kinghostcoupon.com/?p=353</guid>

					<description><![CDATA[<p>In the previous article, we had a tutorial on how to install the Let&#8217;s Encrypt SSL certificate for Apache on CentOS 7, in this article you will know how to... </p>
<p>The post <a rel="nofollow" href="https://kinghostcoupon.com/how-to-install-lets-encrypt-ssl-for-nginx-on-centos-7/">How to Install Let&#8217;s Encrypt SSL for NginX on CentOS 7</a> appeared first on <a rel="nofollow" href="https://kinghostcoupon.com">King Host Coupon</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In the previous article, we had a tutorial on <a href="https://kinghostcoupon.com/how-to-install-free-lets-encrypt-ssl-for-apache-webserver-on-centos-7/">how to install the Let&#8217;s Encrypt SSL certificate for Apache on CentOS 7</a>, in this article you will know how to install Let&#8217;s Encrypt for <a href="https://kinghostcoupon.com/what-is-nginx-how-to-install-and-configure-nginx-web-server/">Nginx Webserver</a> on CentOS 7 server.</p>
<p><img fetchpriority="high" decoding="async" class="aligncenter wp-image-355" src="https://kinghostcoupon.com/wp-content/uploads/2021/11/install-lets-encrypt-for-nginx-on-centos-7.jpg" alt="Install Let's Encrypt for NginX on Cent OS 7" width="598" height="331" srcset="https://kinghostcoupon.com/wp-content/uploads/2021/11/install-lets-encrypt-for-nginx-on-centos-7.jpg 620w, https://kinghostcoupon.com/wp-content/uploads/2021/11/install-lets-encrypt-for-nginx-on-centos-7-300x166.jpg 300w" sizes="(max-width: 598px) 100vw, 598px" /></p>
<h2>What are the benefits of installing SSL on NGINX?</h2>
<p>If you are still wondering about the benefits of installing SSL, you can refer to the following benefits:</p>
<ul>
<li>More trusted by search engines ( Google, Bing..)</li>
<li>Websites with a more secure HTTPS connection</li>
<li>Your website becomes more professional in the eyes of visitors</li>
<li>Minimize network security problems that are extremely unpredictable</li>
</ul>
<h2>Install SSL on NGINX for free with Let&#8217;s Encrypt</h2>
<p>If you have forgotten how to SSH into the server with Putty, you can review <a href="https://kinghostcoupon.com/how-to-connect-linux-vps-server-via-ssh/">this article</a>.</p>
<p><strong>Step 1</strong>: Remove the previous Certbot installation packages</p>
<p><code><span style="color: #ff0000;"><em>yum remove -y certbot</em></span></code></p>
<p><strong>Step 2</strong>: Install Certbot</p>
<p>Currently, the best way to install is through the EPEL repository.</p>
<p>Enable access to the EPEL repository on your server by typing</p>
<p><code><span style="color: #ff0000;"><em>yum install -y epel-release</em></span></code></p>
<p>Use the following command to download the <em>certbot-nginx</em> package:</p>
<p><code><span style="color: #ff0000;"><em>yum install -y certbot-nginx</em></span></code></p>
<p><strong>Step 3</strong>: Open the firewall port</p>
<p>If you are running a firewall, make sure that ports <strong>80</strong> and <strong>443</strong> are open</p>
<p><code><span style="color: #ff0000;"><em>firewall-cmd --zone=public --add-port={80,443}/tcp --permanent</em></span></code></p>
<p><code><span style="color: #ff0000;"><em>firewall-cmd --reload</em></span></code></p>
<p>Type the following command to check</p>
<p><code><span style="color: #ff0000;"><em>firewall-cmd --list-port</em></span></code></p>
<p><strong>Step 4</strong>: Get an SSL certificate</p>
<p>Install the certificate automatically with the following command:</p>
<p><code><span style="color: #ff0000;"><em>certbot --nginx -d example.com -d www.example.com</em></span></code></p>
<p>It will run certbot with the <strong>–nginx</strong> plugin to reconfigure Nginx, use <strong>-d</strong> to determine the valid name of the certificate</p>
<p><strong>Step 5:</strong> Auto-renew</p>
<p>By default, LetsEncrypt certificates are only valid for 90 days, so we encourage you to set up automatic renewal of your SSL certificates.</p>
<p>Try before executing the command (create, renew…) for real, can add the option –dry-run at the end of the command. Such as</p>
<p><code><span style="color: #ff0000;"><em>certbot renew --dry-run</em></span></code></p>
<p>If sure, type the command</p>
<p><code><span style="color: #ff0000;"><em>certbot renew</em></span></code></p>
<p><span style="text-decoration: underline;"><em><strong>Note:</strong></em></span> If you type the command with LetsEncrypt incorrectly, the error is too much, it will block you from working for about 1 hour.</p>
<p>The automatic renewal command applied to Certbot is located in one of the following files and paths:</p>
<p><strong>/etc/crontab</strong></p>
<p><strong>/etc/cron.*/*</strong></p>
<p><strong>systemctl list-timers</strong></p>
<p>Set up cron jobs to auto-renew</p>
<p><code><span style="color: #ff0000;"><em>crontab -e 0 0 15 * * /usr/bin/certbot renew --post-hook "systemctl restart nginx" &gt;&gt; /var/log/certbot-renew.log</em></span></code></p>
<p>This line will run the renewal command at 24 hours on the 15th of each month, then save the log to the file <strong>/var/log/certbot-renew.log</strong> for easy to viewing.</p>
<p><strong>Step 6</strong>: Check Certbot working</p>
<p>Once done, open a browser to access the domain name you just installed SSL, if you see the image below, it has been successfully installed. Congratulation!</p>
<p><img decoding="async" class="aligncenter size-full wp-image-356" src="https://kinghostcoupon.com/wp-content/uploads/2021/11/install-lets-enrypt-for-nginx-on-centos-7-successfully.jpg" alt="Install Let's Encrypt for NginX on CenOS 7 Successfully" width="403" height="512" srcset="https://kinghostcoupon.com/wp-content/uploads/2021/11/install-lets-enrypt-for-nginx-on-centos-7-successfully.jpg 403w, https://kinghostcoupon.com/wp-content/uploads/2021/11/install-lets-enrypt-for-nginx-on-centos-7-successfully-236x300.jpg 236w" sizes="(max-width: 403px) 100vw, 403px" /></p>
<p>Through this article KingHostCoupon has helped you know how to install the free Let&#8217;s Encrypt SSL for Nginx on CentOS 7. If you have any suggestions, you can leave a comment below.</p>
<p>You can find more information in the articles at:</p>
<ul>
<li><a href="http://nginx.org/en/linux_packages.html#RHEL-CentOS">http://nginx.org/en/linux_packages.html#RHEL-CentOS</a></li>
<li><a href="https://www.nginx.com/resources/wiki/start/">https://www.nginx.com/resources/wiki/start/</a></li>
</ul>
<p>The post <a rel="nofollow" href="https://kinghostcoupon.com/how-to-install-lets-encrypt-ssl-for-nginx-on-centos-7/">How to Install Let&#8217;s Encrypt SSL for NginX on CentOS 7</a> appeared first on <a rel="nofollow" href="https://kinghostcoupon.com">King Host Coupon</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://kinghostcoupon.com/how-to-install-lets-encrypt-ssl-for-nginx-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install free Let&#8217;s Encrypt SSL for Apache Webserver on CentOS 7</title>
		<link>https://kinghostcoupon.com/how-to-install-free-lets-encrypt-ssl-for-apache-webserver-on-centos-7/</link>
					<comments>https://kinghostcoupon.com/how-to-install-free-lets-encrypt-ssl-for-apache-webserver-on-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[Anh]]></dc:creator>
		<pubDate>Mon, 01 Nov 2021 16:44:57 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[CentOS 7]]></category>
		<category><![CDATA[Let's Encrypt]]></category>
		<guid isPermaLink="false">https://kinghostcoupon.com/?p=350</guid>

					<description><![CDATA[<p>In this article, you will know how to install an SSL certificate on CentOS 7. SSL (Security Socket Layer) is a web protocol used to protect traffic to the server... </p>
<p>The post <a rel="nofollow" href="https://kinghostcoupon.com/how-to-install-free-lets-encrypt-ssl-for-apache-webserver-on-centos-7/">How to Install free Let&#8217;s Encrypt SSL for Apache Webserver on CentOS 7</a> appeared first on <a rel="nofollow" href="https://kinghostcoupon.com">King Host Coupon</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this article, you will know how to install an SSL certificate on CentOS 7.</p>
<p>SSL (Security Socket Layer) is a web protocol used to protect traffic to the server through encryption.</p>
<p>Typically, e-commerce or online financial services need this protocol because they often store sensitive information, like credit cards.</p>
<p>However, SSL certificates have now become a common standard for all websites, to protect user&#8217;s confidential data, like login information, social security numbers, ID cards, and more.</p>
<p>Fortunately, you can get a completely free and easy SSL certificate from the provider Let&#8217;s Encrypt, and we will guide you through installing SSL for <a href="https://kinghostcoupon.com/what-is-apache/">Apache Webserver</a> on a CentOS 7 server in this article.</p>
<p><img decoding="async" class="aligncenter wp-image-351" src="https://kinghostcoupon.com/wp-content/uploads/2021/11/install-lets-encrypt-for-apache-on-centos-7.jpg" alt="Install Let's Encrypt for Apache on CentOS 7" width="546" height="302" srcset="https://kinghostcoupon.com/wp-content/uploads/2021/11/install-lets-encrypt-for-apache-on-centos-7.jpg 620w, https://kinghostcoupon.com/wp-content/uploads/2021/11/install-lets-encrypt-for-apache-on-centos-7-300x166.jpg 300w" sizes="(max-width: 546px) 100vw, 546px" /></p>
<h2>How to install Let&#8217;s Encrypt SSL certificate for Apache on CentOS 7</h2>
<p>You will need to reread <a href="https://kinghostcoupon.com/how-to-connect-linux-vps-server-via-ssh/">how to access the Server&#8217;s SSH using Putty</a> if you forgot.</p>
<p>Let&#8217;s Encrypt provides everyone with a completely free SSL certificate. Let&#8217;s see how to install it on Apache Webserver running CentOS 7 below.</p>
<p><strong>Step 1</strong>: To get started you will need to update your system first with the following command</p>
<p><code><span style="color: #ff0000;"><em>yum -y update</em></span></code></p>
<p><strong>Step 2</strong>: Install mod_ssl to configure Let&#8217;s Encrypt</p>
<p><code><span style="color: #ff0000;"><em>yum install -y mod_ssl</em></span></code></p>
<p><strong>Step 3</strong>: Install EPEL repository and yum-utils</p>
<p><code><span style="color: #ff0000;"><em>yum –y install epel-release yum-utils</em></span></code></p>
<p><strong>Step 4</strong>: install Certbot for apache</p>
<p><code><span style="color: #ff0000;"><em>yum –y install certbot-apache</em></span></code></p>
<p><strong>Step 5</strong>: Install SSL</p>
<p><code><span style="color: #ff0000;"><em>certbot</em></span></code></p>
<p>We need to go to the <strong>/etc/letsencrypt/live/{domain}</strong> directory to check the files containing the SSL key and certificate.</p>
<h2>How to set up for automatic certificate renewal</h2>
<p>By default, Let&#8217;s Encrypt is only valid for 90 days from the date of registration. So automatic certificate renewal is very important because if you forget it, the SSL certificate will expire. Therefore we need to set it to automatically renew when it is almost expired.</p>
<p><strong>Step 1</strong>: Run the command below to check the renewal process manually</p>
<p><code><span style="color: #ff0000;"><em>certbot renew –dry-run</em></span></code></p>
<p>This command will check for renewal of the current certificate if the certificate is less than 30 days from the expiration date.</p>
<p><strong>Step 2</strong>: Adjust the cronjob to be able to run the auto-renew check command</p>
<p><code><span style="color: #ff0000;"><em>acrontab -e</em></span></code></p>
<p>Add below line in cronjob</p>
<p><code><span style="color: #ff0000;"><em>0 0 15 * * /usr/bin/certbot renew &gt;/dev/null 2&gt;&amp;1</em></span></code></p>
<p>Thus, the above cronjob will automatically renew at 00:00 on the 15th of every month, you will not need to worry about forgetting to renew the certificate when it is almost expired.</p>
<p>Good luck!</p>
<p>The post <a rel="nofollow" href="https://kinghostcoupon.com/how-to-install-free-lets-encrypt-ssl-for-apache-webserver-on-centos-7/">How to Install free Let&#8217;s Encrypt SSL for Apache Webserver on CentOS 7</a> appeared first on <a rel="nofollow" href="https://kinghostcoupon.com">King Host Coupon</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://kinghostcoupon.com/how-to-install-free-lets-encrypt-ssl-for-apache-webserver-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
