How to activate TLS?
You will now activate TLS finally, if all points above are successfully set up. TLS is the protocol that encrypts all traffic to and from your Nextcloud.
- Run over CLI:
sudo bash /var/scripts/menu.sh
- Choose
Server Configuration
->Activate TLS
- Choose to install TLS
- Confirm that you have set up all necessary requirements
- Enter your Domain (e.g.
yourdomain.com
) - Since you've opened Port 80 and 443 manually, you should skip
UPnP
(automatic port forwarding) - Wait until everything is set up and enter your mail-address during this step (Your mail-address is needed for contacting you, if a certificate expires)
Now you should be able to access your Nextcloud on any device by opening yourdomain.com
!
Advices what to do now
It is recommended to activate Two-Factor Authentication for all Nextcloud accounts to further secure them.
- Install a 2FA provider app from the app store by opening to
https://yourdomain.com/settings/apps/security
with the admin account and searching fortwo-factor
by pressing[CTRL] + [F]
on that site and installing a provider that fits your needs. Recommended is theTwo-Factor TOTP Provider
app. - Log in with all Nextcloud accounts in a browser (this will run some initial scripts for the account setup)
- Open
https://yourdomain.com/settings/user/security
with all Nextcloud accounts and activateTwo-Factor Authentication
with your installed 2FA provider. E.g. by activatingTOTP
. And don't forget to generate backup codes for all accounts! (Pro-tip: you can safe the backupcodes and the TOTP secret in your password manager if you don't want to install an additional app. Otherwise you should note them down manually at a safe place.)