Setup SSL

From rbachwiki
Revision as of 18:08, 14 April 2022 by Bacchas (talk | contribs)
Jump to navigation Jump to search

Linode Doc to setup SSL


Installing Snapd

If snapd is not installed, install it now.

sudo apt update
sudo apt install snapd

Install the core snap.

sudo snap install core
sudo snap refresh core

Installing Certbot

The next step is to install Certbot using the snap command.

Remove any previously installed certbot packages to avoid conflicts with the new Snap package.

sudo apt remove certbot

Use Snap to install Certbot.

sudo snap install --classic certbot

Configure a symbolic link to the Certbot directory using the ln command.

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

Requesting a TLS/SSL Certificate Using Certbot

During the certificate granting process, Certbot asks a series of questions about the domain so it can properly request the certificate. You must agree to the terms of service and provide a valid administrative email address. Depending upon the server configuration, the messages displayed by Certbot might differ somewhat from what is shown here.

Run Certbot to start the certificate request. When Certbot runs, it requests and installs certificate file along with a private key file. When used with the Apache plugin (--apache), Certbot also automatically edits the configuration files for Apache, which dramatically simplifies configuring HTTPS for your web server. If you prefer to manually adjust the configuration files, you can run Certbot using the certonly command.