Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED AutoSSL Errors DNS DCV

Discussion in 'Security' started by MarcoConsulting, Feb 25, 2019.

Tags:
  1. MarcoConsulting

    MarcoConsulting Member

    Joined:
    Feb 25, 2019
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Roma
    cPanel Access Level:
    Root Administrator
    Hello,
    i have problem on autossl:

    Code:
    DNS DCV: The DNS query to “_cpanel-dcv-test-record.example.com” for the DCV challenge returned no “TXT” record that matches the value “_cpanel-dcv-test-record=zjArUofGfUm_CL48mrPNlqKUox_jqKktDzHc81LJJIKy2lvGIWlav3DlW1E7Jg9V”.; HTTP DCV: The system queried for a temporary file at “http://example.com/.well-known/pki-validation/C717482B82DE99BB6AA6FF82541D80C6.txt”, but the web server responded with the following error: 404 (Not Found). A DNS (Domain Name System) or web server misconfiguration may exist.
    my .htaccess is:
    Code:
    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    
    RewriteEngine On
    
    RewriteBase /
    
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    
    RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
    
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt$
    
    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt$
    
    RewriteRule ^index\.php$ - [L]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule . /index.php [L]
    
    </IfModule>
    
    
    # END WordPress
    
    
    What shoild i do?
    thanks
     
    #1 MarcoConsulting, Feb 25, 2019
    Last edited by a moderator: Feb 25, 2019
  2. dalem

    dalem Well-Known Member PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,909
    Likes Received:
    127
    Trophy Points:
    368
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. MarcoConsulting

    MarcoConsulting Member

    Joined:
    Feb 25, 2019
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Roma
    cPanel Access Level:
    Root Administrator
    The file doesn't exist, how can i generate it?
    when i check the autossl, in the log this file change everytime the name
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,604
    Likes Received:
    2,187
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @MarcoConsulting,

    Can you verify the DNS for the domain name associated with the AutoSSL request is hosted on the cPanel & WHM server? Or, are you manually populating the DNS records for this domain at it's DNS host? Also, which cPanel & WHM version is installed on this server?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. MarcoConsulting

    MarcoConsulting Member

    Joined:
    Feb 25, 2019
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Roma
    cPanel Access Level:
    Root Administrator
    I set the DNS from my dns provider,
    but whm had set his dns zone, so they are not equal.
    But autossl said something about file .txt that i haven't under pki-validation, attention the autossl check every time change the temporary file name.
    WHM & Cpanel version = 78.0.11
     
  6. MarcoConsulting

    MarcoConsulting Member

    Joined:
    Feb 25, 2019
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Roma
    cPanel Access Level:
    Root Administrator
    this is the autoconfig log:
    [removed due to inclusion of real domain name and username]
    7:55:20 PM ERROR Impediment: TOTAL_DCV_FAILURE: Every domain failed DCV.
    7:55:20 PM The system has completed the AutoSSL check for “removed”.



    which dns i have to edit?
    the hosting dns or the dns zone cpanel or dns zone whm ?? and how?
     
    #6 MarcoConsulting, Feb 25, 2019
    Last edited by a moderator: Feb 25, 2019
  7. MarcoConsulting

    MarcoConsulting Member

    Joined:
    Feb 25, 2019
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Roma
    cPanel Access Level:
    Root Administrator
    I created a test file under pki-validation and with curl i got it...
    i have problem with autossl only with a few domain, the dns are pretty equal.
    Can the staff tell mo how resolve? or how to setup correctly the DNS DCV ???
     
  8. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,604
    Likes Received:
    2,187
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @MarcoConsulting,

    The DNS-based domain control validation is not supported if the DNS for the domain is hosted on a remote server. The entries you had to the local DNS zone will have no effect on the validation process if the DNS is hosted elsewhere. That said, the HTTP-based validation should still be able to succeed. Can you open a support ticket so we can take a closer look at the affected system? You can post the ticket number here and I'll link this thread to it.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. MarcoConsulting

    MarcoConsulting Member

    Joined:
    Feb 25, 2019
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Roma
    cPanel Access Level:
    Root Administrator
    ticket id : 11531223
     
    #9 MarcoConsulting, Feb 26, 2019
    Last edited by a moderator: Feb 26, 2019
  10. MarcoConsulting

    MarcoConsulting Member

    Joined:
    Feb 25, 2019
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Roma
    cPanel Access Level:
    Root Administrator
    Who create the txt file under kpi-validation???
    how can i regenerate this file?
     
  11. MarcoConsulting

    MarcoConsulting Member

    Joined:
    Feb 25, 2019
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Roma
    cPanel Access Level:
    Root Administrator
    Resolved.
    The problem was the IPV6 shared disabled for all my hosting.
    Thanks
     
  12. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,604
    Likes Received:
    2,187
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @MarcoConsulting,

    I'm glad to see the issue was solved. Here's part of the response in the ticket that explained the cause of the problem:

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice