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!

AutoSSL reduction of coverage

Discussion in 'Security' started by PortStone, Apr 28, 2018.

Tags:
  1. PortStone

    PortStone Member

    Joined:
    Apr 25, 2018
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Germany
    cPanel Access Level:
    Reseller Owner
    Hello,

    Today I got the following error:

    Code:
    The validation required 1 HTTP redirect, but the AutoSSL provider “cPanel (powered by Comodo)” does not permit HTTP redirects. When the system accessed the “http://mydomain.tld/.well-known/pki-validation/xxxxxxxxxxxxxxxxxxxx.txt” URL, it redirected to the “https://mydomain.tld/.well-known/pki-validation/xxxxxxxxxxxxxxxxxxxx.txt” URL.
    that is because of HTTPS redirects in VirtualHost but if I remove it, my Domain wouldn't redirect to HTTPS anymore. So how should I fix this?

    Kind Regards
    PortStone
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,821
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Do you have the Use a Global DCV Passthrough instead of .htaccess modification (requires EA4) option enabled under the Domains tab in WHM >> Tweak Settings? If not, you'll need to enable that option or exclude the DCV requests from the redirect conditions by adding the following entries to your existing rules in the VirtualHost include file:

    Code:
    # For cPanel’s internal DCV checks:
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
    
    # For Comodo:
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt$
    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    
    # For Let’s Encrypt:
    RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. PortStone

    PortStone Member

    Joined:
    Apr 25, 2018
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Germany
    cPanel Access Level:
    Reseller Owner
    Hello,

    okay thank you.
     
    cPanelMichael likes this.
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