The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Security' started by Valetia, Nov 10, 2015.

  1. Valetia

    Valetia Well-Known Member

    Joined:
    Jun 20, 2002
    Messages:
    207
    Likes Received:
    1
    Trophy Points:
    18
    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
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    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
     
  3. Valetia

    Valetia Well-Known Member

    Joined:
    Jun 20, 2002
    Messages:
    207
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    It works! Many thanks for the quick response.
     
Loading...

Share This Page