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


Well-Known Member
Jun 20, 2002
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:


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:



cPanel Development
Staff member
Apr 7, 2006
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: