Symptoms
When attempting to get a hostname certificate, you receive an error similar to the following.
The system failed to validate domain control for the domain “host.domain.tld” using the “HTTP” DCV method: 403 urn:ietf:params:acme:error:unauthorized (The client lacks sufficient authorization) (20.30.40.50: Invalid response from http://host.domain.tld/.well-known/acme-challenge/nCwr5XpPvZsdfDG_eqRnCNkSSmsjYmANaj1QZrTcDqM: 404)
Description
The error occurs when the server's hostname doesn't resolve to the server's primary IP address.
Workaround
If the hostname of the server resolves to a different IP address than the one configured in Basic WebHost Manager® Setup, this will need to be adjusted. You can either update the DNS of the hostname to match the IP in the Basic WebHost Manager® Setup, or update the main shared IPv6/IPv4 address to match the IP that the hostname resolves to. This can be done at "WHM / Home / Server Configuration / Basic WebHost Manager® Setup".
Please note, If you change the IP of the main shared IP address in the WHM Basic WebHost Manager® Setup, you will need to rebuild and restart Apache.