Install Certbot

Certboot Image
sudo apt update
sudo apt install certbot python3-certbot-apache

Obtain SSL/TLS Certificate

sudo certbot --apache

Verify Renewal Configuration (Optional)

Certbot automatically sets up a cron job to renew your certificates before they expire. You can verify the renewal configuration by running:

sudo certbot renew --dry-run
How to Install LAMP Apache, MySQL, PHP on Debian 11 ? Install and Configure Nagios on Debian 11 Install PureFTPd and Set Up MySQL Connect with SSH Keys Using Putty Configuring Virtual Hosts on Debian 11 with Apache and OpenSSL