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.

Lets Encrypt SSL on main control panel URL.
#1
Lets Encrypt SSL on main control panel URL.
This is all done on a BigV instance on Bytemark

  1. Spin up a new server on BigV
  2. Install Ubuntu 14.04.
  3. I have changed the reverse DNS to njoror.squashedfly.eu
  4. set up SSH Key login
  5. visit http://docs.sentora.org/?node=22 and follow the instructions:
    Code:
    bash <(curl -L -Ss http://sentora.org/install)
    (you will need to double check the subdomain, and ipV4 address)
  6. update the DNS
    • Our DNS is hosted with Cloudflare because it makes sense,
    • A record to njoror to the ipV4 and AAAA record for ipV6 this allows direct access to njoror.squashedfly.eu (don't pass this domain via the CDN cloud), will also want the MX sorted some how.

## Let's Encript
  1. following the instructions at http://forums.sentora.org/showthread.php?tid=688&page=3 as a start point…
    Code:
    apt-get install git
    cd ~
    git clone https://github.com/letsencrypt/letsencryptcd letsencrypt

now we have the Let's Encrypt package installed we set it up on the panel address

Code:
./letsencrypt-auto certonly --webroot -w /etc/sentora/panel/ -d njoror.squashedfly.eu

you will be asked for an email address… Make sure that it is one that you will not lose access to!.

the SSL certificates are located in `/etc/letsencrypt/live/njoror.squashedfly.eu`
  • cert.pem
  • chain.pem
  • fullchain.pem
  • privkey.pem

Activate SSL (if not yet)
Code:
a2enmod ssl

Restart apache
Code:
service apache2 restart

go to Sentora -> Admin -> Module Admin -> Apache Config

Under Global Sentora Entry:
Code:
</VirtualHost>
Listen 443
<VirtualHost *:443>
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLCertificateFile /etc/letsencrypt/live/njoror.squashedfly.eu/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/njoror.squashedfly.eu/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/njoror.squashedfly.eu/fullchain.pem
DocumentRoot "/etc/sentora/panel/"
ServerName njoror.squashedfly.eu
ErrorLog "/var/sentora/logs/sentora-error.log"
CustomLog "/var/sentora/logs/sentora-access.log" combined
CustomLog "/var/sentora/logs/sentora-bandwidth.log" common
AddType application/x-httpd-php .php
<Directory "/etc/sentora/panel/">
Options +FollowSymLinks -Indexes
   AllowOverride All
   Require all granted
</Directory>
</VirtualHost>

Code:
restart apache - sudo service apache2 restart

If you add
Code:
Redirect Permanent / https://njoror.squashedfly.eu/
before the first </VirtualHost> it will always forward to the HTTPS page Big Grin
Reply
Thanks given by:


Messages In This Thread
Lets Encrypt SSL on main control panel URL. - by Skippy - 01-10-2016, 11:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
https without certificate redirects to panel iraqiboy90 10 22 ,743 02-28-2021, 11:20 AM
Last Post: iraqiboy90
How to run multiple version PHP with Apache (use Sentora panel) on Centos ??? BigBang 4 9 ,319 12-23-2020, 03:31 PM
Last Post: djkashdui1
PLZ Help me install ssl in my own VPS Centos7 Sentora panel younessesoft 1 4 ,524 05-26-2020, 07:34 PM
Last Post: 5050

Forum Jump:


Users browsing this thread: 4 Guest(s)