Let's Encrypt: Sentora Login
Process must be done as ROOT user.
Installing git & Let’s Encrypt
Let’s Encrypt is a new Certificate Authority:
It’s free, automated, and open.
On Sentora Panel go to Admin -> PHPinfo -> View Full PHP Configuration -> Search for mod_ssl
If missing, install it:
For Ubuntu:
apt-get install mod_ssl
For CentOs:
yum install mod_ssl
(openssl does not mandate the install of mod_ssl in CentOS 6.x)
On Sentora Panel go to Admin -> PHPinfo -> View Full PHP Configuration -> Search for openssl
If missing, install it:
For Ubuntu:
apt-get install openssl
For CentOs:
yum install openssl
Also edit /etc/httpd/conf.d/ssl.conf and change Listen 443 to #Listen 443
For Ubuntu:
apt-get install git
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
./letsencrypt-auto --help
For CentOs:
yum install git
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
./letsencrypt-auto --help
You need to turn off apache before creating a certificate or you will get something like
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.
REMINDER: Replace panel.example.com by your Sentora login URL.
For Ubuntu:
service apache2 stop
./letsencrypt-auto certonly --standalone -d panel.example.com
service apache2 start
For CentOs:
service httpd stop
./letsencrypt-auto certonly --standalone -d panel.example.com
service httpd start
On Sentora Panel go to Admin -> Sentora Config -> Sentora Apache Port, change to 443 and save.
On Sentora Panel go to Admin -> Module Admin -> Apache Config > Global Sentora Entry
Don't forget to replace panel.example.com with your panel's login URL below:
Code:
Save Vhost.
Warning : REQUIRE apache >= 2.4
Warning : Don't forget to replace panel.example.com with your panel's login URL
On Sentora Panel go to Admin -> Module Admin -> Apache Config > Global Sentora Entry, add also :
It will occurs in next 5 minutes.
Or, if you are too much anxious:
a) run it manually (same for Ubuntu and CentOs):
php -q /etc/sentora/panel/bin/daemon.php
b) restart apache:
For Ubuntu:
service apache2 restart
For CentOs:
service httpd restart
Your panel login should now be secured by SSL.
You can test it here: https://www.ssllabs.com/ssltest/