We recommend selecting either all domains, or all domains in a VirtualHost/server block.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: api.lynnux.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Requesting a certificate for api.lynnux.com
Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: api.lynnux.com
Type: unauthorized
Detail: The key authorization file from the server did not match this challenge. Expected "T1-PhR4ajr47g-uj3OIeNKhoRunPSQ-oc3sCDirxdDs.ujqihhBLk3dmy08fb_mLDfNrTDEyxVBgb9tZVQOc5p8" (got "WP.com")
Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.
My web server is (include version):
nginx version: nginx/1.18.0 (Ubuntu)
The operating system my web server runs on is (include version):
Ubuntu 22.04.1 LTS
My hosting provider, if applicable, is: https://time4vps.com
I can login to a root shell on my machine: Yes
I'm using a control panel to manage my site: No
The version of my client is. certbot 2.7.2
P.S. to link my domain to my server i use a A record set to the server IP.
The error is unusual. The Certbot --nginx plugin makes temp changes to your nginx config. When the Let's Encrypt server contacts your domain to validate the Certbot request it should get the value Certbot setup.
But, instead your domain responds with the text WP.com (wordpress?)
I cannot reproduce this error with various testing tools.
Can you upload the contents of the config.txt file resulting from this command?
$ sudo nginx -T >config.txt
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful