> ## Content Index
> Fetch the complete content index at: https://blog.esadax.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Installing SSL Certificates and Enabling HSTS on Ubiquiti UniFi
- URL: https://blog.esadax.com/en/installing-ssl-certificates-and-enabling-hsts-on-ubiquiti-unifi/
- Published: 2026-11-15T04:16:19.000Z
- Updated: 2026-11-15T04:16:19.000Z
- Author: Esadax 
- Tags: #tr-faq-06-ssl-installing-an-ssl-certificate-on-ubiquiti-unifi, #en, #mdx-imported, FAQ

To enable SSL security features on your UniFi controller, follow these steps:

1. **Enable HSTS**:
  - Open `system.properties` and uncomment the lines for HSTS settings.
  - Set `unifi.https.hsts=false` to enable HSTS.
  - Adjust `unifi.https.hsts.max_age` to set the cache duration (e.g., 31536000 seconds for one year).
  - Enable preloading by setting `unifi.https.hsts.preload=true` if you won't remove it later.
  - Set `unifi.https.hsts.subdomain=false` unless you want HSTS applied to subdomains.
2. **Configure Cipher Suites and SSL Protocols**:
  - Uncomment the lines for `unifi.https.ciphers` and `unifi.https.sslEnabledProtocols`.
  - Specify allowed cipher suites and protocols in their respective fields.
3. **HTTPS Redirect**:
  - Ensure HTTPS redirect is enabled by default, so accessing the admin panel via `http://hostname:8080` will redirect to `https://hostname:8443`.
4. **Restart UniFi**:
  - Save changes to `system.properties`, then restart your UniFi controller.