How to solve the issue of ambari-agent cannot register ambari-server with error – SSLError: Failed to connect…

1. On Ambari Server “/etc/amabri-server/conf/” file add the following protocols:


then restart ambari-server by: systemctl restart ambari-server

2. Add the following option to security section in “/etc/amabri-agent/conf/ambari-agent.ini” in all the hosts in the cluster


and restart ambari-agent by: systemctl restart ambari-agent