Skip to content

Certbot

Filip Krzyżanowski edited this page Nov 12, 2022 · 1 revision

Installation

1. Update and upgrade apt package manager

sudo apt update && sudo apt upgrade -y

2. Install snapd package for another package managing

sudo apt install snapd -y

3. Install core package using snap

sudo snap install core

4. Refresh core using snap

sudo snap refresh core

5. Install Let'sEncrypt certbot using snap package

sudo snap install --classic certbot

6. Add symbolic link between snap installation folder and user sharable folder

sudo ln -s /snap/bin/certbot /usr/bin/certbot

Working with certificates

Adding certificate do domain

You need to replace all domain.com with your domain name and [email protected] with your email address

You need to add new certificate for all subdomains!

sudo certbot --apache --agree-tos --redirect -m [email protected] -d domain.com -d www.domain.com

If this is your first certificate on machine you need to agree wih TOS - type Y and press ENTER