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.

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:
    18
    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.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,471
    Likes Received:
    199
    Trophy Points:
    63
    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.
     
Loading...

Share This Page