All Linux HowTo's Security HowTo's

Letsencrypt With Apache and CentOS7

This article demonstrates how to add Letsencrypt SSL certificates to a CentOS 7 apache server. Some information for this article was obtained (and simplified) from here:

This is the minimum you’d do to get Letsencrypt working on your CentOS 7 or RHEL 7 server. We’re keeping SELinux on and have not previously configured a vhost (virtual host) for the domain we’re using Letsencrypt for.

We need the Epel repo and git:

yum install epel-release git

Now get Letsencrypt via git:

git clone /opt/letsencrypt
cd /opt/letsencrypt

Get the certificate. Replace “” with your own domain:

./letsencrypt-auto --apache -d

You can add another domain to the above line. For example you can have “-d -d -d”.

The script above will assume you’re using the “ssl.conf” file unless you already have virtual host file for the letsencrypt certificate.

And you’re done. Go to your website with “https://” and see if it works.

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *