Rebuilding /var/cpanel/ssl/installed/ssl.db
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
-
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 0 -
It works! Many thanks for the quick response. 0
Please sign in to leave a comment.
Comments
2 comments