To enable SSL security features on your UniFi controller, follow these steps:
- Enable HSTS:
- Open
system.propertiesand uncomment the lines for HSTS settings. - Set
unifi.https.hsts=falseto enable HSTS. - Adjust
unifi.https.hsts.max_ageto set the cache duration (e.g., 31536000 seconds for one year). - Enable preloading by setting
unifi.https.hsts.preload=trueif you won't remove it later. - Set
unifi.https.hsts.subdomain=falseunless you want HSTS applied to subdomains.
- Open
- Configure Cipher Suites and SSL Protocols:
- Uncomment the lines for
unifi.https.ciphersandunifi.https.sslEnabledProtocols. - Specify allowed cipher suites and protocols in their respective fields.
- Uncomment the lines for
- HTTPS Redirect:
- Ensure HTTPS redirect is enabled by default, so accessing the admin panel via
http://hostname:8080will redirect tohttps://hostname:8443.
- Ensure HTTPS redirect is enabled by default, so accessing the admin panel via
- Restart UniFi:
- Save changes to
system.properties, then restart your UniFi controller.
- Save changes to
