Unable to install Let's Encrypt - Error performing the action

It seems like the problem is not fully resolved. I am getting an error as “Couldn’t resolve host name” from my application and when I checked in internet I could see that the reason may be because of the mismatch of the common name in the certificate and FQDN. When I was trying to set the SAML I ran some commands which does change the certificate configuration. As the SSL is back now, I would like to revert the changes I have done as part of SAML configuration to default. Can anyone please help me how to do this?