Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
The operating system my web server runs on is (include version):
Ubuntu 22.04
My hosting provider, if applicable, is:
Ec2 Instance
I can login to a root shell on my machine (yes or no, or I don't know):
Yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 1.21.0
This is not a place to find such a link/blog.
That said, XAMPP uses Apache and enabling a secure site on that is straight forward.
What do these show?: sudo apachectl -t -D DUMP_VHOSTS certbot certificates
OK , the "www" name is NOT in the certificate.
If you intend on using that name, you will have to replace that cert with a cert that has both names on it: