Nextcloud has the option of using a free SSL certificate Let's Encrypt.
This is relevant if the user has his own domain or can buy it. And if you want to remove the browser warning about working with an untrusted SSL certificate. This warning occurs because, by default, Nextcloud uses a self-signed SSL certificate issued "to itself", not a certificate issued by a trusted certificate authority, which browsers consider reliable.
To create and configure the certificate Let's Encrypt is necessary:
1. In the DNS zone of your domain, create an "A" record with the desired Nextcloud server name and the IP address of your virtual datacenter.
Server name: nextcloud.cloud4y.ru
IP address: 188.8.131.52
2. Log in to the server console via the Cloud Control Panel or using an SSH client.
3. Run a command in the console:
snap run nextcloud.occ config:system:set trusted_domains 1 --value=your_server name
snap run nextcloud.occ config:system:set trusted_domains 1 --value=nextcloud.cloud4y.ru
4. Run a command in the console:
snap run nextcloud.enable-https lets-encrypt
Once the command is started, it will be necessary:
- accept installer's requirements,
- enter your e-mail address,
- enter the server name
5. After these steps, you can log on to the server by name and enjoy the absence of alerts in your browser.
Have you tried Virtual cloud servers by Cloud4Y? Not yet?
Leave a request and get a 10-day free trial.