Articles tagged with: ubuntu

Create an automated letsencrypt certificate for the Apache web service on Ubuntu 16.04


apt update && apt upgrade -y

apt-get install software-properties-common

add-apt-repository ppa:certbot/certbot

apt update && apt upgrade -y

sudo apt-get install python-certbot-apache

Add domain or subdomain name to create the certificate.
sudo certbot --apache -d smsk.biz -d www.smsk.biz

just for test renew
sudo certbot renew --dry-run

Reload apache service
/etc/init.d/apache2 reload

Add command to crontab for everyday renew.
Because you will be allowed to be renewal the day before your certificate is expire.
crontab -e
0 1 * * * sudo certbot renew --quiet
[wpedon id=”539″ align=”right”]

Loading

Local Ubuntu Repository Server

If you want to setup this configuration you need to minimum 350Gb free disk space.

############### Server Side ###############

sudo apt-get install apache2

sudo apt-get install apt-mirror

sudo mkdir -p /Mirror/apt-mirror

sudo vi /etc/apt/mirror.list

Loading