Manage Service SSL Certificates Issue
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:
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.
*.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.
-
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. 0
Please sign in to leave a comment.
Comments
1 comment