Certificate did not match expected hostname: acme-v02.api.letsencrypt.org. Certi ficate: {‘subjectAltName’: [(‘DNS’, ‘* .yieldmo.com’), (‘DNS’, ‘yieldmo.com’)], ‘subject’: (((‘commonName’, u '* .yieldmo.com '),),)}
An unexpected error occurred:
except that this domain does not belong to me.
how to solve this problem
thank you
It looks like your client is getting the yieldmo.com certificate when trying to access https://acme-v02.api.letsencrypt.org/. It’s not about your website itself.
What happens if you run “curl -v https://acme-v02.api.letsencrypt.org/directory”?
Does the system’s /etc/hosts file have an entry for acme-v02.api.letsencrypt.org or something?
Can you fill out the rest of the questionnaire below?
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. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:
I ran this command:
It produced this output:
My web server is (include version):
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don’t know):
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):
TLSv1.2 (OUT), TLS alert, Client hello (1):
curl: (51) SSL: no alternative certificate subject name matches target host name ‘acme-v02.api.letsencrypt.org’
Yes, and as Jürgen says, you should remove the lines that refer to the acme-v02.api.letsencrypt.org service from this file. The IP address hard-coded there is an old one that’s no longer correct.
I restarted the command and I no longer have the error
thank you !!!
on the other hand my virtual host is in 8080
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Apache Authenticator, Install Apache
Cert is due for renewal, self-renewing …
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for cloud.rivard-international.com
Cleaning up challenges
Unable to find a virtual host that is currently in need of certbot to prove that you control your domain. Please add a virtual host for port 80.
It’s difficult for Certbot to work when port 80 is used by other software on the machine (that is, other than the web server for which you want to obtain your certificate).
In this case, you would need to stop the other program that uses port 80 temporarily before requesting the certificate (and also when renewing the certificate).