Skip to main content

HTTP and DNS DCV checks failing

Comments

7 comments

  • cPanelLauren
    Can you add a test.txt
    file at /var/www/html/.well-known/pki-validation/
    re-run the curl request as follows: curl -kvv http://server.hostname.com/.well-known/pki-validation/test.txt
    The HTTP DCV check will not function over https and the return that the internal DCV check is getting indicates an invalid Accept header response:
    0
  • Bretas
    Thanks for the clarification, Lauren! I followed your instructions and test.txt is being served correctly (HTTP 200): $ curl -kvv http://[SERVER_FQDN_HOSTNAME]/.well-known/pki-validation/test.txt * Trying [SERVER_IP]:80... * TCP_NODELAY set * Connected to [SERVER_FQDN_HOSTNAME] ([SERVER_IP]) port 80 (#0) > GET /.well-known/pki-validation/test.txt HTTP/1.1 > Host: [SERVER_FQDN_HOSTNAME] > User-Agent: curl/7.68.0 > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Date: Wed, 03 Jun 2020 04:09:14 GMT < Server: Apache < Upgrade: h2,h2c < Connection: Upgrade < Last-Modified: Wed, 03 Jun 2020 04:06:15 GMT < ETag: "82191-5-5a72626329bc0" < Accept-Ranges: bytes < Content-Length: 5 < Cache-Control: no-cache, no-store, must-revalidate < Pragma: no-cache < Expires: 0 < Content-Type: text/plain < TEST * Connection #0 to host [SERVER_FQDN_HOSTNAME] left intact
    $ ls -laht /var/www/html/.well-known/pki-validation/ total 24K drwxr-xr-x 2 root root 4.0K Jun 3 01:06 . -rw-r--r-- 1 root root 5 Jun 3 01:06 test.txt -rw-r--r-- 1 root root 77 Jun 20 2019 0DF7F3539F05CD000479D58A750007DE.txt -rw-r--r-- 1 root root 77 Jul 14 2018 D6AFC2E5BF5339023476BDFFB0F4735C.txt drwxr-xr-x 3 root root 4.0K Aug 7 2017 .. -rw-r--r-- 1 root root 77 Aug 7 2017 13D967AB73920CBFC5385E16322E24CB.txt
    0
  • cPanelLauren
    Try it with the user agent flag now as follows; curl -kvv --user-agent "COMODO DCV" --max-time 10 --retry 0 http://[SERVER_FQDN_HOSTNAME]/.well-known/pki-validation/test.txt
    Also, let me know if you still get the same error when you run the check again. and if you do does the output of the following come back with your server's IP? /scripts/cpdig server.hostname.tld a --verbose
    0
  • Bretas
    Sorry I'm late! Here's the output of the cURL: $ curl -kvv --user-agent "COMODO DCV" --max-time 10 --retry 0 http://[SERVER_FQDN_HOSTNAME]/.well-known/pki-validation/test.txt * Trying [SERVER_IP]:80... * TCP_NODELAY set * Connected to [SERVER_FQDN_HOSTNAME] ([SERVER_IP]) port 80 (#0) > GET /.well-known/pki-validation/test.txt HTTP/1.1 > Host: [SERVER_FQDN] > User-Agent: COMODO DCV > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Date: Fri, 05 Jun 2020 22:40:59 GMT < Server: Apache < Upgrade: h2,h2c < Connection: Upgrade < Last-Modified: Wed, 03 Jun 2020 04:06:15 GMT < ETag: "82191-5-5a72626329bc0" < Accept-Ranges: bytes < Content-Length: 5 < Cache-Control: no-cache, no-store, must-revalidate < Pragma: no-cache < Expires: 0 < Content-Type: text/plain < TEST * Connection #0 to host [SERVER_FQDN_HOSTNAME] left intact
    Yes, the 406 error is still showing up when running "/usr/local/cpanel/bin/checkallsslcerts". As for the second command: $ /scripts/cpdig [SERVER_FQDN_HOSTNAME] a --verbose [1591396623] libunbound[3436025:0] notice: init module 0: validator [1591396623] libunbound[3436025:0] notice: init module 1: iterator [1591396623] libunbound[3436025:0] info: resolving [SERVER_FQDN_HOSTNAME]. A IN [1591396623] libunbound[3436025:0] info: priming . IN NS [1591396623] libunbound[3436025:0] info: error sending query to auth server 2001:500:a8::e port 53 [1591396624] libunbound[3436025:0] info: response for . NS IN [1591396624] libunbound[3436025:0] info: reply from <.> 192.58.128.30#53 [1591396624] libunbound[3436025:0] info: query response was ANSWER [1591396624] libunbound[3436025:0] info: response for . NS IN [1591396624] libunbound[3436025:0] info: reply from <.> 192.112.36.4#53 [1591396624] libunbound[3436025:0] info: query response was ANSWER [1591396624] libunbound[3436025:0] info: priming successful for . NS IN [1591396624] libunbound[3436025:0] info: response for [SERVER_FQDN_HOSTNAME]. A IN [1591396624] libunbound[3436025:0] info: reply from <.> 199.7.83.42#53 [1591396624] libunbound[3436025:0] info: query response was REFERRAL [1591396624] libunbound[3436025:0] info: response for [SERVER_FQDN_HOSTNAME]. A IN [1591396624] libunbound[3436025:0] info: reply from 200.229.248.10#53 [1591396624] libunbound[3436025:0] info: query response was nodata ANSWER [1591396624] libunbound[3436025:0] info: error sending query to auth server 2001:12f8:a::10 port 53 [1591396624] libunbound[3436025:0] info: response for [SERVER_FQDN_HOSTNAME]. A IN [1591396624] libunbound[3436025:0] info: reply from 200.219.148.10#53 [1591396624] libunbound[3436025:0] info: query response was REFERRAL [1591396624] libunbound[3436025:0] info: resolving ns2.[OUR_DOMAIN]. AAAA IN [1591396624] libunbound[3436025:0] info: resolving ns.[OUR_DOMAIN]. AAAA IN [1591396624] libunbound[3436025:0] info: response for [SERVER_FQDN_HOSTNAME]. A IN [1591396624] libunbound[3436025:0] info: reply from <[OUR_DOMAIN].> [OUR_NS1_IP]#53 [1591396624] libunbound[3436025:0] info: query response was ANSWER ?9??
    All IPs being shown are the recursive/authoritative DNS servers through which the query was performed. None of the IPs printed out belong the the affected server. It's worth noticing that I ran the same command on two other cPanel servers that are not at all affected by this issue (and ran "/usr/local/cpanel/bin/checkallsslcerts" on them to confirm, both finished correctly). As it turns out, one of them also returned "?9??" as a result and the other one finished with its own IP as it was supposed to. When I call the system DIG command rather than cPanel's cpdig, however, the affected server's IP is comes up correctly: $ dig A +short [SERVER_FQDN_HOSTNAME] [SERVER_MAIN_IP]
    Thansk!
    0
  • cPanelLauren
    Hi @Bretas I apologize for my own delay in responding to this. I was unexpectedly out for several days. In this case, I think it is indeed best if you open a ticket if you're still experiencing the issue. This way we can look at the configuration of the server. Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved. Thanks!
    0
  • Bretas
    Hy, Lauren! No problem, coincidentally I opened a ticket just a few hours ago asking about this. :) Ticket number is 93499114. Thanks!
    0
  • cPanelLauren
    I just checked in on this and it looks like there's an analyst currently working on it. I'll keep an eye on it and report back with what he finds
    0

Please sign in to leave a comment.