Manage Service SSL Certificates Issue

sehh

Well-Known Member
Feb 11, 2006
579
5
168
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.