Requirements
Operating system Ubuntu 18.04 Lts With Latest Security Patches.
Full internet access.
Valid Domain Name
Webservers - Nginx / Apache2
NGINX
Installing Certbot
sudo add-apt-repository ppa:certbot/certbot
sudo apt install python-certbot-nginx
Obtaining an SSL Certificate
sudo certbot --nginx -d yourdomain.com -d www.yourdomain.com
Apache2
sudo add-apt-repository ppa:certbot/certbot
sudo apt install python-certbot-apach2
Obtaining an SSL Certificate
sudo certbot --apache-d ourdomain.com -d www.yourdomain.com
Output
Output
Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access. ------------------------------------------------------------------------------- 1: No redirect - Make no further changes to the webserver configuration. 2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for new sites, or if you're confident your site works on HTTPS. You can undo this change by editing your web server's configuration. ------------------------------------------------------------------------------- Select the appropriate number [1-2] then [enter] (press 'c' to cancel):
Output
IMPORTANT NOTES: - Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/yourdomain.com/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/yourdomain.com/privkey.pem Your cert will expire on 2018-07-23. To obtain a new or tweaked version of this certificate in the future, simply run certbot again with the "certonly" option. To non-interactively renew *all* of your certificates, run "certbot renew" - Your account credentials have been saved in your Certbot configuration directory at /etc/letsencrypt. You should make a secure backup of this folder now. This configuration directory will also contain certificates and private keys obtained by Certbot so making regular backups of this folder is ideal. - If you like Certbot, please consider supporting our work by: Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate Donating to EFF: https://eff.org/donate-le