This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Secure your domain with Free SSL/TLS Certificates (Centos 7)
Secure your domain with Free SSL/TLS Certificates (Centos 7)
Installing git & Let’s Encrypt

Let’s Encrypt is a new Certificate Authority:
It’s free, automated, and open.

yum install git mod_ssl openssl
git clone
cd letsencrypt
./letsencrypt-auto --help

Creating a Certificate for your domain

You need to turn off apache before creating a certificate or you will get something like

Quote:The program httpd (process ID XXXX) is already listening on TCP port 80. This will prevent us from binding to that port. Please stop the httpd program temporarily and then try again.

Replace by your domain.tld

service httpd stop
./letsencrypt-auto certonly --standalone -d -d
service httpd start

Adding a Custom Entry on Virtual Host

On Sentora Panel go to Admin -> Module Admin -> Apache Config
On "Override a Virtual Host Setting" Select Vhost for your domain and add a "Custom Entry" like bellow

Don't miss to replace and example_com by your domain tld

permanent /
<VirtualHost *:443>
ServerAdmin zadmin@localhost
DocumentRoot "/var/sentora/hostdata/zadmin/public_html/example_com"
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mk$
ErrorLog "/var/sentora/logs/domains/zadmin/"
CustomLog "/var/sentora/logs/domains/zadmin/" combined
CustomLog "/var/sentora/logs/domains/zadmin/" common
<Directory "/var/sentora/hostdata/zadmin/public_html/example_com">
  Options +FollowSymLinks -Indexes
  AllowOverride All
  Require all granted
AddType application/x-httpd-php .php3 .php
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/
SSLCertificateKeyFile /etc/letsencrypt/live/
SSLCertificateChainFile /etc/letsencrypt/live/
always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"

Save Vhost.

Wait on daemon update or restart it manually and restart apache

php -q /etc/sentora/panel/bin/daemon.php
service httpd restart

Your domain should now be secured by SSL.
Thanks given by: Zenirax , jstacklin , Me.B , ijsje , TGates

Messages In This Thread
Secure your domain with Free SSL/TLS Certificates (Centos 7) - by PsyKitty - 01-17-2016, 12:50 AM
Thank you! - by jstacklin - 01-17-2016, 10:42 AM
Forced HTTPS? - by jstacklin - 01-17-2016, 11:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Secure Sentora Domains with Let's Encrypt TGates 27 92 ,624 06-08-2024, 05:06 PM
Last Post: andykimpe
Secure Sentora With SSLForFree Chris L 1 4 ,930 01-22-2020, 09:19 PM
Last Post: ralphharder
Fail2ban for Sentora (Centos 7) bbspike 14 46 ,257 01-14-2020, 07:32 AM
Last Post: Vedran B

Forum Jump:

Users browsing this thread: 1 Guest(s)