Letsencrypt - Remove this certificate so that it can be reinstalled

SYSTEM INFORMATION
OS type and version AlmaLinux 9.2
Webmin version 2.021
Virtualmin version 7.7 Pro
Related packages ---------------

How do I remove this certificate so that it can be reinstalled and fix the hostname?
I created a self-signed certificate but I can’t remove it.

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Certificate did not match expected hostname: acme-v02.api.letsencrypt.org. Certificate: {‘subject’: (((‘commonName’, ‘xxxxxx.com’),),), ‘issuer’: (((‘countryName’, ‘US’),), ((‘organizationName’, “Let’s Encrypt”),), ((‘commonName’, ‘R3’),)), ‘version’: 3, ‘serialNumber’: ‘043FD34C4C10DDE3A8400C3ED125EB228402’, ‘notBefore’: ‘Apr 13 15:52:42 2023 GMT’, ‘notAfter’: ‘Jul 12 15:52:41 2023 GMT’, ‘subjectAltName’: ((‘DNS’, ‘admin.xxxxxx.com’), (‘DNS’, ‘xxxxxx.com’), (‘DNS’, ‘mail.xxxxxx.com’), (‘DNS’, ‘webmail.xxxxxx.com’), (‘DNS’, 'www.xxxxxx.com)), ‘OCSP’: (‘http://r3.o.lencr.org’,), ‘caIssuers’: (‘http://r3.i.lencr.org/’,)}
An unexpected error occurred:
requests.exceptions.SSLError: HTTPSConnectionPool(host=‘acme-v02.api.letsencrypt.org’, port=443): Max retries exceeded with url: /directory (Caused by SSLError(SSLCertVerificationError(“hostname ‘acme-v02.api.letsencrypt.org’ doesn’t match either of ‘admin.xxxxxx.com’, ‘xxxxxx.com’, ‘mail.xxxxxx.com’, ‘webmail.xxxxxx.com’, ‘www.xxxxxx.com’”)))
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

I tried to follow and run with mentioned in this item below but, there is no in Edit Virtual Server the item Apache Website SSL enabled.

Here, too, the problem has been solved…
The problem was in the definition of the nameservers, I was using the dns of the provider. When I made the change in Webmin → Networking → Network Configuration → Hostname and DNS Client

Entering the IP of use first, then the IPV6 and then the IP’s of the servers in the provider everything returned to normal.

Search domains →
Listed → local hostname