Hi @Shraddha Singh,
I encountered same issue during the ambari-agent registration.
Ambari-agent registration failed with ambari-server due to below issue EOF occurred in violation of protocol (_ssl.c:618) ERROR 2018-11-27 13:43:19,511 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions
vi /etc/ambari-agent/conf/ambari-agent.ini force_https_protocol=PROTOCOL_TLSv1_2 vi /etc/python/cert-verification.cfg [https] verify=disable
Hope this helps!!!. Thanks