Nextcloud offers the option to use a free SSL certificate from Let's Encrypt. This is relevant if you have your own domain or can purchase one. If you want to remove the browser warning about working with an untrusted SSL certificate, you should consider using Let's Encrypt. By default, Nextcloud uses a self-signed certificate issued "to itself", which browsers consider unreliable.
To set up Let's Encrypt, you need to:
1. Create an "A" record in your domain's DNS zone with the desired Nextcloud server name and IP address of your virtual data center. For example,
- Server name: nextcloud.cloud4u.com
- IP address: 1.1.1.1
2. Login to the server console using the Cloud Control Panel or an SSH client.
3. In the console, run the following command:
- snap run nextcloud.occ config:system:set trusted_domains 1 --value=your_domain_name
For example:
snap run nextcloud.occ config:system:set trusted_domains 1 --value=nextcloud.cloud4u.com
4. Run the following command in the terminal:
`snap run nextcloud.enable-https lets-encrypt`
After the command has started, you will need to:
- Accept the installer's terms and conditions.
- Enter your email address.
- Specify the server name.
5. Once these steps are completed, you can access the server using the specified name and enjoy a more secure browsing experience without any alerts.