Project

General

Profile

Actions

Installing SSL with Let's Encrypt SSL

After successfully setting up Nextcloud, you'll want to take steps to ensure that your connection is secure. One way to do this is by setting up an SSL certificate using Let's Encrypt SSL.

To get started, you'll need to install certbot, which is a tool that automates the process of obtaining and renewing SSL certificates. Once you have certbot installed, you can use it to request a certificate from Let's Encrypt.

Install Certbot using the following command:


apt-get install python3-certbot-apache -y

Once Certbot is installed, run the following command to obtain a certificate for your domain:

certbot --apache -d next.example.com

Replace "next.example.com" with your actual domain name.

Select whether or not to redirect HTTP traffic to HTTPS you shoud Type 2 and hit Enter to install the Let's Encrypt SSL.

Certbot will then automatically obtain and install the SSL certificate for your domain, and configure your Apache web server to use it.

After the installation is complete, you should be able to access your website over HTTPS with a valid SSL certificate.

Updated by Gareth Eaton about 1 year ago · 1 revisions