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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

AutoSSL fails for one user

Discussion in 'Security' started by JawadArshad, May 9, 2017.

Tags:
  1. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    454
    Likes Received:
    6
    Trophy Points:
    68
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    Hello,

    While trying to force AutoSSL check, autossl script fails on one particular user.

    root@server[/home]# /usr/local/cpanel/bin/autossl_check --user=<user>
    This system has AutoSSL set to use “Let’s Encrypt™”.
    Checking websites for “<user>” …
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
    Use of uninitialized value $vh_name in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 396.
    Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 288.
    Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 290.
    Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 290.
    Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 290.
    Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 290.
    Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 290.
    Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 290.
    Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 290.
    Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 290.
    Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 290.
    Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 290.
    Use of uninitialized value $vhname in concatenation (.) or string at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 292.
    Unrecognized vhost: “” at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 292.
    The system has completed the AutoSSL check for “<user>”.

    When accessing SSL menu from within cPanel of that user, I get different warnings.

    ==
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346, <DATA> line 1.
    at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346, <DATA> line 1.
    Cpanel::WebVhosts::_return_domain_vhosts_list("<user>", CODE(0x29d8090)) called at /usr/local/cpanel/Cpanel/WebVhosts.pm line 147
    Cpanel::WebVhosts::list_domains("<user>") called at /usr/local/cpanel/Cpanel/API/WebVhosts.pm line 87
    Cpanel::API::WebVhosts::list_domains(Cpanel::Args=HASH(0x4bd46a0), Cpanel::Result=HASH(0x4bd44c0)) called at /usr/local/cpanel/Cpanel/API.pm line 287
    Cpanel::API::__ANON__() called at /usr/local/cpanel/Cpanel/API.pm line 359
    eval {...} called at /usr/local/cpanel/Cpanel/API.pm line 359
    Cpanel::API::_eval_guard(Cpanel::Result=HASH(0x4bd44c0), CODE(0x4bd4b90)) called at /usr/local/cpanel/Cpanel/API.pm line 287
    Cpanel::API::_run_module_function(Cpanel::Args=HASH(0x4bd46a0), Cpanel::Result=HASH(0x4bd44c0), "WebVhosts", "list_domains") called at /usr/local/cpanel/Cpanel/API.pm line 142
    Cpanel::API::execute("WebVhosts", "list_domains", HASH(0x442feb8)) called at /usr/local/cpanel/base/frontend/paper_lantern/ssl/crts.html.tt line 2
    eval {...} called at /usr/local/cpanel/base/frontend/paper_lantern/ssl/crts.html.tt line 2
    eval {...} called at /usr/local/cpanel/base/frontend/paper_lantern/ssl/crts.html.tt line 16
    Template::Provider::__ANON__(Template::Context=HASH(0x39d32b8)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 163
    eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 161
    Template::Document::process(Template::Document=HASH(0x431b1a8), Template::Context=HASH(0x39d32b8)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 351
    eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 321
    Template::Context::process(Template::Context=HASH(0x39d32b8), Template::Document=HASH(0x431b1a8)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 94
    eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 91
    Template::Service::process(Template::Service=HASH(0x3c92c50), "/usr/local/cpanel/base/frontend/paper_lantern/ssl/crts.html.tt", HASH(0x36ef3f8)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template.pm line 66
    Template::process(Template=HASH(0x39dfa48), "/usr/local/cpanel/base/frontend/paper_lantern/ssl/crts.html.tt", HASH(0x36ef3f8), SCALAR(0x28db940)) called at /usr/local/cpanel/Cpanel/Template.pm line 457
    Cpanel::Template::process_template("cpanel", HASH(0x36ef3f8), HASH(0x3f2ee40)) called at cpanel.pl line 1248
    cpanel::cpanel::cptt_exectag("/usr/local/cpanel/base/frontend/paper_lantern/ssl/crts.html.tt", 1) called at cpanel.pl line 5226
    cpanel::cpanel::run_standard_mode() called at cpanel.pl line 874
    cpanel::cpanel::script("cpanel::cpanel", "./frontend/paper_lantern/ssl/crts.html.tt") called at cpanel.pl line 304
    ==

    "Manage SSL Sites" throws this fatal error.

    ==
    Template::Exception:
    [TYPE]=[undef]
    [INFO]=[SSL::installed_hosts() failed: Unrecognized vhost: “” at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 292.

    ]
    [TEXT]=[]
    at cpanel.pl line 1267.
    cpanel::cpanel::cptt_exectag("/usr/local/cpanel/base/frontend/paper_lantern/ssl/install.htm"..., 1) called at cpanel.pl line 5226
    cpanel::cpanel::run_standard_mode() called at cpanel.pl line 874
    cpanel::cpanel::script("cpanel::cpanel", "./frontend/paper_lantern/ssl/install.html.tt") called at cpanel.pl line 304

    ==
     
  2. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    604
    Likes Received:
    94
    Trophy Points:
    103
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    "<user>" is not an actual cPanel user. You need to replace that with the actual username.
     
  3. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    454
    Likes Received:
    6
    Trophy Points:
    68
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    I intentionally took out the user before posting this for security reasons. :)
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Do you notice a separate userdata file for a mail.domain.tld subdomain under the /var/cpanel/userdata/$username/ directory? If so, could you verify if you've manually created "mail.domain.tld" as a subdomain or addon domain under this account?

    Thank you.
     
  5. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    454
    Likes Received:
    6
    Trophy Points:
    68
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    No Michael there is no mail. subdomain. I checked /var/cpanel/userdata/user folder, /var/cpanel/users/username file, and /etc/*. It appears client somehow installed a wildcard self signed certificate and then ended up purchasing full SSLs, now those purchased wildcard certs are working but letsencrypt continues to throw these errors. I have manually removed the self signed cert from places I could find but i am not sure if its remnants are somehow causing this. Nothing logs inside cPanel error or access log so I am unable to find out.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you open a support ticket using the link in my signature so we can take a closer look at the account on the affected system?

    Thank you.
     
  7. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    454
    Likes Received:
    6
    Trophy Points:
    68
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    Sorry for not following up, A colleague took it up and fixed it that day. Ticket got closed so I couldn't review it. Odd enough, it was fixed by toggling cagefs for the user.
     
    cPanelMichael likes this.
Loading...

Share This Page