Rebuilding /var/cpanel/ssl/installed/ssl.db

Valetia

Well-Known Member
Jun 20, 2002
216
10
168
cPanel Access Level
Root Administrator
We had to manually install (i.e., via SSH) some SSL certificates, since we kept getting an "unknown API error" when we tried to install them via either WHM or cPanel.

After the manual installations, the entries in the following 2 files were correct:

/etc/httpd/conf/httpd.conf
/var/cpanel/userdata/username/domain_SSL

The SSL certificates are working fine in Apache, but cPanel and WHM are still showing previously installed certificates as being the current ones.

Presumably, this is because ssl.db and ssl.db.cache need to be rebuilt/updated before cPanel and WHM will list the actual live certificates as being the ones currently installed.

With this in mind, how does one rebuild the following files:

/var/cpanel/ssl/installed/ssl.db
/var/cpanel/ssl/installed/ssl.db.cache
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
79
458
cPanel Access Level
Root Administrator
If it's for a single user you can use the following command:

/scripts/rebuilduserssldb user

If you want to rebuild the cache for all users, use the following command:

/scripts/rebuildinstalledssldb