Skip to content

TLS protocol and cipher tuning for cPanel Apache

Concrete TLS protocol and cipher settings for cPanel/EasyApache, with the WHM Tweak Settings path and the rationale behind each setting.

cPanel’s TLS defaults are dated. Out of the box, you often get TLS 1.0 and 1.1 still enabled, and a cipher list that includes RC4 fallbacks. SSL Labs gives the server a B and the auditor writes a finding. The fix is a 10-minute config change — but only if you have audited the actual client population first.

What’s happening

Apache on cPanel reads TLS configuration from httpd.conf and the per-vhost includes. cPanel exposes the high-level toggles in WHM > Tweak Settings > Encryption and WHM > Apache Configuration > Global Configuration > SSL Cipher Suite. The Mozilla SSL Configuration Generator output is a good baseline, but you must choose between “modern” (TLS 1.3 only), “intermediate” (TLS 1.2 + 1.3), and “old” (TLS 1.0+). Most cPanel hosts should be on intermediate.

How to verify

openssl s_client -connect example.com:443 -tls1 < /dev/null 2>&1 | grep -E "Protocol|Cipher"
openssl s_client -connect example.com:443 -tls1_2 < /dev/null 2>&1 | grep -E "Protocol|Cipher"
nmap --script ssl-enum-ciphers -p 443 example.com 2>&1 | tail -40
grep -E "(SSLProtocol|SSLCipherSuite|SSLHonorCipherOrder)" /etc/apache2/conf/httpd.conf

nmap enumerates every cipher the server accepts, ranked by version.

The fix

  1. WHM > Apache Configuration > Global Configuration > SSL/TLS Protocols: set to TLSv1.2 TLSv1.3. Drop TLSv1, TLSv1.1, and SSLv3 explicitly.
  2. SSL Cipher Suite: use the Mozilla intermediate generator output, currently: ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
  3. SSLHonorCipherOrder: on so the server picks the cipher, not the client.
  4. SSLOpenSSLConfCmd Curves: X25519:secp384r1:secp256r1 for modern ECDHE curve preference.
  5. DH parameters: confirm you are using 2048-bit or higher. cPanel’s defaults are now adequate, but legacy dhparam.pem files in /etc/ssl/ may be 1024-bit. Generate fresh: openssl dhparam -out /etc/ssl/dhparam.pem 2048.
  6. Restart Apache via WHM (Apache Configuration > Rebuild Configuration and Restart Apache). Confirm with the nmap enumeration above.
  7. Test from outside with SSL Labs (ssllabs.com/ssltest). Target an A or A+.
  8. Communicate the TLS 1.0/1.1 removal before flipping. Legacy clients (old payment terminals, vintage IoT, Windows XP browsers) will break.

Stack Harbor maintains TLS configuration baselines across managed cPanel hosts under cPanel server administration.