Symptoms
When running the script to install the free hostname certificate you'll see the following error:
FAILED: Cpanel::Exception/(XID jvs8jf) The system failed to fetch the DCV (Domain Control Validation) file at “http://hostnamee.domain.tld/.well-known/pki-validation/DCVFILE.txt” because of an error: The system failed to send an HTTP (Hypertext Transfer Protocol) “GET” request to “http://hostname.domain.tld/.well-known/pki-validation/DCVFILE.txt” because of an error: Could not connect to 'hostname.domain.tld:80': Connection refused
Description
When using a server profile that does not make use of Apache, cPanel's webserver (cpsrvd) starts to listen on port 80 to allow for HTTP DCV to complete successfully.
cPanel also provides the ability to prevent cpsrvd from listening on port 80 through a tweak setting. If you need a free hostname certificate and you have disabled the ability for cpsrvd to listen on port 80, you must revert the change so that cpsrvd can listen on port 80.
Resolution
- Login to WHM as the root user
- Navigate to: Home »Server Configuration »Tweak Settings
- Find the option labeled: Prevent cpsrvd from serving standard HTTP ports
- Set the option to: Off (default)
- Scroll to the bottom of the page and click the blue save button
- Login to the server via SSH or use the Terminal feature in WHM to issue the following command in order to obtain the free hostname certificate:
/usr/local/cpanel/bin/checkallsslcerts
Comments
0 comments
Article is closed for comments.