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!

Manage Service SSL Certificates Issue

Discussion in 'General Discussion' started by sehh, Jun 19, 2015.

  1. sehh

    sehh Well-Known Member

    Joined:
    Feb 11, 2006
    Messages:
    579
    Likes Received:
    5
    Trophy Points:
    168
    Location:
    Europe
    I found an interesting bug. If I try to upload/install a wildcard domain certificate (*.domain.com) then the "Manage Service SSL Certificates" dies and can no longer be accessed. It produces the following error:

    undef error - cannot encode reference to scalar 'SCALAR(0x2b8e45909800)' unless the scalar is 0 or 1 at /usr/local/cpanel/Cpanel/JSON.pm line 42.

    After a little research, I found that some service files get corrupted, they are:
    /var/cpanel/ssl/cpanel-DOMAINS
    /var/cpanel/ssl/dovecot-DOMAINS
    /var/cpanel/ssl/exim-DOMAINS
    /var/cpanel/ssl/ftp-DOMAINS

    For example, they look like:

    Code:
    *.domain.com
    ARRAY(0x1bc1a100)
    
    Obviously something went wrong with the wildcard "*" part of the certificate.

    The only way to bring back the system, is to remove those "ARRAY" lines.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    If you believe you've come across some sort of defect in the product, please feel free to report it here:
    Defects | cPanel

    That same link is in header of forums for your convenience.
     
    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