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.
Hi,
I’m having trouble generating a cert for my webserver. It seems to unnecessarily do a redirect to the IP address, and thus not allowing it. Can anybody point me in the right direction with this?
My domain is: artistore.ch
I ran this command: certbot certonly --non-interactive --webroot --agree-tos --email redacted@example.com --cert-name artistore.ch -w /usr/
It produced this output:
Failed authorization procedure. www.artistore.ch (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://160.85.252.142: Invalid host in redirect target “160.85.252.142”. Only domain names are supported, not IP addresses, artistore.ch (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://160.85.252.142: Invalid host in redirect target “160.85.252.142”. Only domain names are supported, not IP addresses
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: www.artistore.ch
Type: connection
Detail: Fetching http://160.85.252.142: Invalid host in redirect
target “160.85.252.142”. Only domain names are supported, not IP
addressesDomain: artistore.ch
Type: connection
Detail: Fetching http://160.85.252.142: Invalid host in redirect
target “160.85.252.142”. Only domain names are supported, not IP
addressesTo fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you’re using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
My web server is (include version): nginx 1.18.0
The operating system my web server runs on is (include version):
debian buster
I can login to a root shell on my machine: yes
The version of my client is: certbot 0.31.0