Symptoms
Not being able to access cPanel, WHM, or Webmail due to an error resembling the following:
Secure Connection Failed
An error occurred during a connection to <IP Address>. Cannot communicate securely with peer: no common encryption algorithm(s). Error code: SSL_ERROR_NO_CYPHER_OVERLAP
Description
This error can occur if the ciphers for cPanel/WHM/Webmail have been configured incorrectly. This is usually due to manual changes to the ciphers via WHM » Service Configuration » cPanel Web Services Configuration.
Workaround
The solution to this issue is to move aside the /var/cpanel/conf/cpsrvd
directory and restart cpsrvd afterward:
[root@cptechs]# mv -v /var/cpanel/conf/cpsrvd{,.bak}
/var/cpanel/conf/cpsrvd’ -> var/cpanel/conf/cpsrvd.bak
[root@cptechs]# /scripts/restartsrv_cpsrvd
After restarting cpsrvd and gaining access to WHM, change the ciphers back to their default values:
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
You can also find the default configuration for cPanel Web Services in our documentation:
cPanel Web Services Configuration