<?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>Let’s Encrypt on CentOS 7 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/lets-encrypt-on-centos-7/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 08 Feb 2019 10:54:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>install Let’s Encrypt on CentOS 7 with Apache</title>
		<link>https://www.osradar.com/install-lets-encrypt-on-centos-7-with-apache/</link>
					<comments>https://www.osradar.com/install-lets-encrypt-on-centos-7-with-apache/#comments</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Fri, 08 Feb 2019 10:54:33 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Let’s Encrypt apache]]></category>
		<category><![CDATA[Let’s Encrypt on CentOS 7]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=10613</guid>

					<description><![CDATA[<p>we  will show you How to install Let’s Encrypt on CentOS 7 with Apache.  this opensource code  of Let’s Encrypt is a completely free ,secure and fully automated,  this  make your woprk easy to setup the TLS certificates on your server Let’s Encrypt is known  by major  internet players like Mozilla, Akamai, Cisco and from [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-lets-encrypt-on-centos-7-with-apache/">install Let’s Encrypt on CentOS 7 with Apache</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>we  will show you How to install Let’s Encrypt on CentOS 7 with Apache.  this opensource code  of Let’s Encrypt is a completely free ,secure and fully automated,  this  make your woprk easy to setup the TLS certificates on your server</p>
<p>Let’s Encrypt is known  by major  internet players like Mozilla, Akamai, Cisco and from all browsers, The webmasters owners can easily obtain security certificates in few easy steps</p>
<p>1. Lets  Update the system</p>
<p>Updatin Centos or Redhat should be done via yum command.</p>
<p>&nbsp;</p>
<pre class="">[root@osradar-centos7 ~]# yum update -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror1.spango.com
* extras: mirror.seedvps.com
* updates: mirror.hostnet.nl
Resolving Dependencies
--&gt; Running transaction check
---&gt; Package GeoIP.x86_64 0:1.5.0-11.el7 will be updated
---&gt; Package GeoIP.x86_64 0:1.5.0-13.el7 will be an update
---&gt; Package NetworkManager.x86_64 1:1.8.0-9.el7 will be updated
---&gt; Package NetworkManager.x86_64 1:1.12.0-8.el7_6 will be an update
---&gt; Package NetworkManager-libnm.x86_64 1:1.8.0-9.el7 will be updated
---&gt; Package NetworkManager-libnm.x86_64 1:1.12.0-8.el7_6 will be an update
---&gt; Package NetworkManager-team.x86_64 1:1.8.0-9.el7 will be updated
---&gt; Package NetworkManager-team.x86_64 1:1.12.0-8.el7_6 will be an update
---&gt; Package NetworkManager-tui.x86_64 1:1.8.0-9.el7 will be updated</pre>
<p>&nbsp;</p>
<p><strong>2. Install Apache</strong></p>
<p>Lets install Apache as  web server,</p>
<p>using this command:</p>
<pre class=""># yum -y install httpd yum-utils

---&gt; Package httpd.x86_64 0:2.4.6-88.el7.centos will be installed
--&gt; Processing Dependency: httpd-tools = 2.4.6-88.el7.centos for package: httpd-2.4.6-88.el7.centos.x86_64
--&gt; Processing Dependency: /etc/mime.types for package: httpd-2.4.6-88.el7.centos.x86_64
--&gt; Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.4.6-88.el7.centos.x86_64
--&gt; Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.4.6-88.el7.centos.x86_64
--&gt; Running transaction check
---&gt; Package apr.x86_64 0:1.4.8-3.el7_4.1 will be installed
---&gt; Package apr-util.x86_64 0:1.5.2-6.el7 will be installed
---&gt; Package httpd-tools.x86_64 0:2.4.6-88.el7.centos will be installed</pre>
<p><strong>3. Install mod_ssl</strong></p>
<p>Install mod_ssl  is needed to configure Let’s Encrypt SSL certificate:</p>
<pre class=""># yum -y install mod_ssl</pre>
<p><strong>4. Configure Apache</strong></p>
<p>Create a document root folder for your site  like  Vhost</p>
<pre class=""># mkdir /var/www/osradar</pre>
<pre class=""># chown -R apache:apache /var/www/osradar</pre>
<p>Create a virtual host config for  osradar site by  pasting the following contents  in :</p>
<p># vi /etc/httpd/conf.d/test-osradar.conf</p>
<pre class="">&lt;VirtualHost *:80&gt;
ServerAdmin admin@osradar.com
DocumentRoot "/var/www/osradar"
ServerName osradar.com
ServerAlias www.osradar.com
ErrorLog "/var/log/httpd/osradar.error_log"
CustomLog "/var/log/httpd/osradar.access_log" common
&lt;/VirtualHost&gt;</pre>
<p>&nbsp;</p>
<p><img loading="lazy" class="alignnone size-full wp-image-10631" src="https://www.osradar.com/wp-content/uploads/2019/02/Encrypt11a.png" alt="" width="720" height="168" srcset="https://www.osradar.com/wp-content/uploads/2019/02/Encrypt11a.png 720w, https://www.osradar.com/wp-content/uploads/2019/02/Encrypt11a-300x70.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/Encrypt11a-696x162.png 696w" sizes="(max-width: 720px) 100vw, 720px" /></p>
<p>Add a index.html file for testing purposes later with the following contents:</p>
<pre class="">#vi  /var/www/osradar/index.html</pre>
<p>Osradar   Testing</p>
<p>Allow  the Http  en   HTTPS  thrue the  firewall</p>
<pre class="">[root@osradar-centos7 ~]# firewall-cmd --permanent --add-service=http
success
[root@osradar-centos7 ~]# firewall-cmd --permanent --add-service=https
success
[root@osradar-centos7 ~]# firewall-cmd --reload
success

</pre>
<p>Browse to   http://www.osradar.local</p>
<p class=""><img loading="lazy" class="alignnone size-full wp-image-10630" src="https://www.osradar.com/wp-content/uploads/2019/02/Encrypt12-a.png" alt="" width="1129" height="335" srcset="https://www.osradar.com/wp-content/uploads/2019/02/Encrypt12-a.png 1129w, https://www.osradar.com/wp-content/uploads/2019/02/Encrypt12-a-300x89.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/Encrypt12-a-768x228.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/Encrypt12-a-1024x304.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/Encrypt12-a-696x207.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/Encrypt12-a-1068x317.png 1068w" sizes="(max-width: 1129px) 100vw, 1129px" /><br />
Apache is Done,   lets continue by installing certbot.</p>
<p class="">
<strong>5. Install certbot</strong></p>
<p>To install certbot first we need EPEL repository enabled, to do that execute the following command:</p>
<pre class=""># yum -y install epel-release</pre>
<p>Then install certbot for Apache:</p>
<pre class=""># yum  install certbot-apache -y</pre>
<p>Now that we have certbot installed, run certbot with the following command: certbot-2</p>
<pre class=""># certbot-2

Certbot will ask you for the names you would like to activate HTTPS for:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org

Which names would you like to activate HTTPS for?
-------------------------------------------------------------------------------
1: osradar.com
2: www.osradar.com
-------------------------------------------------------------------------------
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel):

Press enter to continue and then optionally if you want you can redirect your sites to HTTPS:

Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
-------------------------------------------------------------------------------
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
-------------------------------------------------------------------------------
Select the appropriate number [1-2] then [enter] (press 'c' to cancel):

If everything goes well you should see the following output:

-------------------------------------------------------------------------------
Congratulations! You have successfully enabled
https://test.com and https://www.test.com

You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=test.com
https://www.ssllabs.com/ssltest/analyze.html?d=www.test.com
-------------------------------------------------------------------------------</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-10632" src="https://www.osradar.com/wp-content/uploads/2019/02/Encrypt13.png" alt="" width="894" height="273" srcset="https://www.osradar.com/wp-content/uploads/2019/02/Encrypt13.png 894w, https://www.osradar.com/wp-content/uploads/2019/02/Encrypt13-300x92.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/Encrypt13-768x235.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/Encrypt13-696x213.png 696w" sizes="(max-width: 894px) 100vw, 894px" /></p>
<p>&nbsp;</p>
<p><strong>6. Configure automatic renewal</strong></p>
<p>how to add a cronjob so our Let’s Encrypt SSL certificates can be renewed automatically.</p>
<p>Please execute the following command to edit the crontab  ( 1 time per day) :</p>
<pre class=""># crontab -e</pre>
<p>&nbsp;</p>
<pre class="">* 5 * * * /usr/bin/certbot renew &gt;/dev/null 2&gt;&amp;1</pre>
<p>Now you should have successfully installed and configured Let’s Encrypt with Apache.</p>
<p><img loading="lazy" class="alignnone size-full wp-image-10633" src="https://www.osradar.com/wp-content/uploads/2019/02/Encrypt14.png" alt="" width="1390" height="721" srcset="https://www.osradar.com/wp-content/uploads/2019/02/Encrypt14.png 1390w, https://www.osradar.com/wp-content/uploads/2019/02/Encrypt14-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/Encrypt14-768x398.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/Encrypt14-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/Encrypt14-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/Encrypt14-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/Encrypt14-810x420.png 810w" sizes="(max-width: 1390px) 100vw, 1390px" /></p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-lets-encrypt-on-centos-7-with-apache/">install Let’s Encrypt on CentOS 7 with Apache</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-lets-encrypt-on-centos-7-with-apache/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
