Yesterday, 02:42 PM
Yes, the SSL certificate typically works only on port 443 by default, as it's the standard port for HTTPS. However, Asustor’s EZ-Connect and custom ports can sometimes cause issues with SSL validation.
Possible Reasons for the Certificate Error:
Port 444 Instead of 443
Many SSL certificates are bound to port 443 by default. If you're running HTTPS on port 444, browsers may flag it as insecure.
Some certificate authorities only issue valid certificates for port 443.
Self-Signed Certificate Warning
If you're using the default self-signed certificate from Asustor, browsers will always show a security warning.
To fix this, you need a trusted SSL certificate from Let's Encrypt or another provider.
NextCloud Running on Port 32680
Your NextCloud is running on port 32680, but if the SSL certificate is tied to port 443, it won’t cover this port.
If you’re accessing NextCloud via https://yourdomain.com:32680, the browser might not recognize the SSL certificate.
Solutions & Fixes
✅ 1. Force HTTPS Through Reverse Proxy (Recommended)
Instead of running NextCloud on port 32680, set up a reverse proxy on the NAS to route https://yourdomain.com/nextcloud to localhost:32680.
On your Asustor NAS:
Go to ADM Control Panel > Reverse Proxy.
Create a new rule:
Source: https://yourdomain.com
Destination: localhost:32680
Ensure HTTPS is enabled for the source.
✅ 2. Use Port 443 for HTTPS
Try switching back to port 443 for HTTPS in Asustor’s settings.
Test your connection using https://yourdomain.com without specifying a port.
✅ 3. Get a Valid SSL Certificate
If you’re using a self-signed certificate, install a Let's Encrypt certificate in ADM > Certificate Manager.
Make sure to set it as default and use it for all services.
✅ 4. Configure NextCloud’s Trusted Domains
If NextCloud is rejecting your HTTPS connection, add your domain to its config:
SSH into your NAS.
Edit config.php (/volume1/.@plugins/AppCentral/nextcloud/config/config.php).
Add your external domain under trusted domains:
php
Copy
Edit
'trusted_domains' => array (
0 => 'localhost',
1 => 'yourdomain.com',
2 => 'your.external.ip',
),
Restart NextCloud.
Final Steps
Try accessing NextCloud via https://yourdomain.com/nextcloud (without a port number).
If the issue persists, check browser console logs and run:
bash
Copy
Edit
sudo openssl s_client -connect yourdomain.com:32680
to debug SSL issues.
Possible Reasons for the Certificate Error:
Port 444 Instead of 443
Many SSL certificates are bound to port 443 by default. If you're running HTTPS on port 444, browsers may flag it as insecure.
Some certificate authorities only issue valid certificates for port 443.
Self-Signed Certificate Warning
If you're using the default self-signed certificate from Asustor, browsers will always show a security warning.
To fix this, you need a trusted SSL certificate from Let's Encrypt or another provider.
NextCloud Running on Port 32680
Your NextCloud is running on port 32680, but if the SSL certificate is tied to port 443, it won’t cover this port.
If you’re accessing NextCloud via https://yourdomain.com:32680, the browser might not recognize the SSL certificate.
Solutions & Fixes
✅ 1. Force HTTPS Through Reverse Proxy (Recommended)
Instead of running NextCloud on port 32680, set up a reverse proxy on the NAS to route https://yourdomain.com/nextcloud to localhost:32680.
On your Asustor NAS:
Go to ADM Control Panel > Reverse Proxy.
Create a new rule:
Source: https://yourdomain.com
Destination: localhost:32680
Ensure HTTPS is enabled for the source.
✅ 2. Use Port 443 for HTTPS
Try switching back to port 443 for HTTPS in Asustor’s settings.
Test your connection using https://yourdomain.com without specifying a port.
✅ 3. Get a Valid SSL Certificate
If you’re using a self-signed certificate, install a Let's Encrypt certificate in ADM > Certificate Manager.
Make sure to set it as default and use it for all services.
✅ 4. Configure NextCloud’s Trusted Domains
If NextCloud is rejecting your HTTPS connection, add your domain to its config:
SSH into your NAS.
Edit config.php (/volume1/.@plugins/AppCentral/nextcloud/config/config.php).
Add your external domain under trusted domains:
php
Copy
Edit
'trusted_domains' => array (
0 => 'localhost',
1 => 'yourdomain.com',
2 => 'your.external.ip',
),
Restart NextCloud.
Final Steps
Try accessing NextCloud via https://yourdomain.com/nextcloud (without a port number).
If the issue persists, check browser console logs and run:
bash
Copy
Edit
sudo openssl s_client -connect yourdomain.com:32680
to debug SSL issues.