This tutorial is based on the domain ''nextcloud.home''. So change the domain to your specific domain.
It is also important that the domain address gets redirected from your router. This can also be set in the ''/etc/hosts'' file of your computer, but to reach the domain on every device, it is easier to change this directly in the router:
<code>
nextcloud.domain SERVER-IP
</code>
===== Generating the private key and root certificate =====
Change the following information as you wish. It appears when you view the certificate through your browser.
<code>
Country Name (2 letter code) [AU]:
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:
Email Address []:
</code>
===== Installing your root certificate on all the devices =====
You'll need to create a `myCA.pem` file on every device and copy the content of `cat myCA.pem` file wherever you created it in section [[#generating-the-private-key-and-root-certificate]].
==== Arch Linux ====
<code>
sudo trust anchor --store myCA.pem
</code>
==== Android ====
''Settings'' - ''Security'' - ''Encryption and credentials'' - ''Install a certificate''