@vaibhavm You need two steps process.
1. Disable TLS for CM so that you can access Web UI, for this follow below instruction.
Disable TLS for the CM:
1. Determine Cloudera Manager Database
cat /etc/cloudera-scm-server/db.properties
2. Make database backup
3. get inside the DB.
#mysql --user=cm --password=cm
#mysql> show databases;
#mysql> use cm;
4. Show TLS related rows
select * from CONFIGS where attr like '%tls%';
5. Update TLS for web_tls
update CONFIGS set value = 'false' where attr = 'web_tls';
6. Update TLS for agent_tls
update CONFIGS set value = 'false' where attr = 'agent_tls';
7. Show TLS related rows
select * from CONFIGS where attr like '%tls%';
8. Restart Cloudera Manager server process
service cloudera-scm-server restart
2. At this stage you will be able to successfully login into CM Web UI. Now you can disable Auto-TLS (If already enabled) using below method.
--remove the line in /etc/default/cloudera-scm-server that loads cm_init.txt on startup
--then you can turn off TLS in the web UI and remove the TLS configs from the agent config.ini
3. Then you can follow the doc which @Mike in Austin refereed in his comment to enable TLS again from fresh.
Cheers! Was your question answered? Make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button.