User Tools

Site Tools


automated_free_https_secure_web_ssl_certs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

automated_free_https_secure_web_ssl_certs [2026/10/24 18:49] – created adminautomated_free_https_secure_web_ssl_certs [2026/10/24 18:56] (current) – Page complete admin
Line 1: Line 1:
-= Automated Free HTTPS Secure Web SSL Certificates+=====Automated Free HTTPS Secure Web SSL Certificates=====
  
 Debian (amongst other linux distros) have a package that can be used to automatically get https ssl certs for your apache setup. What used to be quite a process creating self signed certs, can now be fully automated with Lets Encrypt ( https://letsencrypt.org/ ) Debian (amongst other linux distros) have a package that can be used to automatically get https ssl certs for your apache setup. What used to be quite a process creating self signed certs, can now be fully automated with Lets Encrypt ( https://letsencrypt.org/ )
 Lets Encrypt gives SSL certs for 90 days (but may reduce to 64 days). That is not a problem however, as cron will automatically request a new certificate when the time comes. Lets Encrypt gives SSL certs for 90 days (but may reduce to 64 days). That is not a problem however, as cron will automatically request a new certificate when the time comes.
  
-== Install Package ==+==== Install Package ====
  
 +<code>
  apt-get install python3-certbot-apache  apt-get install python3-certbot-apache
-  
  certbot --apache -d xxxx.com  certbot --apache -d xxxx.com
 +</code>
  
 End Result ->  End Result -> 
-#####+ 
 +<code>
 Account registered. Account registered.
 Requesting a certificate for xxxx.com Requesting a certificate for xxxx.com
Line 23: Line 25:
  
 Deploying certificate Deploying certificate
-Successfully deployed certificate for sburke.eu to /etc/apache2/sites-available/02-xxx-le-ssl.conf+Successfully deployed certificate for xxxx.com to /etc/apache2/sites-available/02-xxx-le-ssl.conf
 Congratulations! You have successfully enabled HTTPS on https://xxxx.com Congratulations! You have successfully enabled HTTPS on https://xxxx.com
-#####+ 
 +</code>
  
 Right, so what did it do! Right, so what did it do!
 +
 Well it correctly picked up the correct config in apache and modified it to add into <VirtualHost *:80> Well it correctly picked up the correct config in apache and modified it to add into <VirtualHost *:80>
 +<code>
 RewriteEngine on RewriteEngine on
 RewriteCond %{SERVER_NAME} =www.xxxx.com [OR] RewriteCond %{SERVER_NAME} =www.xxxx.com [OR]
 RewriteCond %{SERVER_NAME} =xxxx.com RewriteCond %{SERVER_NAME} =xxxx.com
 RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
 +</code>
  
 It then created a new vhost config: It then created a new vhost config:
 +
 /etc/apache2/sites-available/02-xxx-le-ssl.conf /etc/apache2/sites-available/02-xxx-le-ssl.conf
-Copying details of existing vhost for 80 and modifying it for 443. 
  
 +Copying details of existing vhost for 80 and modifying it for 443.
 +<code>
 <VirtualHost *:443> <VirtualHost *:443>
         ServerAdmin email@domain.com         ServerAdmin email@domain.com
Line 58: Line 66:
 </VirtualHost> </VirtualHost>
 </IfModule> </IfModule>
 +</code>
  
 It reloaded apache. It reloaded apache.
 Volia. Magic. Site not encrypted.  Volia. Magic. Site not encrypted. 
-Unbelievably easy. Really. Kudos cerbot, lets encrypt and debian.+Unbelievably easy. Really. Kudos certbot, lets encrypt and Debian. 
  
 Crontab added in: Crontab added in:
 +
 cat /etc/cron.d/certbot cat /etc/cron.d/certbot
  
Line 79: Line 90:
  
 Refs: Refs:
-https://linuxconfig.org/generate-ssl-certificates-with-letsencrypt-debian-linux +  * https://linuxconfig.org/generate-ssl-certificates-with-letsencrypt-debian-linux 
-https://www.rosehosting.com/blog/how-to-install-lets-encrypt-on-debian-13/ +  * https://www.rosehosting.com/blog/how-to-install-lets-encrypt-on-debian-13/ 
-https://wiki.debian.org/LetsEncryp+  * https://wiki.debian.org/LetsEncryp
  
  
automated_free_https_secure_web_ssl_certs.1792867766.txt.gz · Last modified: 2026/10/24 18:49 by admin