Thank you for the output.
If it is vApp, we have another solution for that. You can change the hostname via vApp console options.
Login to the vApp via SSH with maintenance user account.
Go to options 3 -> 11.
You can enter the new hostname, and go for option 10 to reset server certificate.
Then reboot the vApp as suggested in the output of option 10.
This will help you to fix this problem.
Regards,
Saravanan