Reset API Key

 

After deploying the certificates and making the required changes to the settings files, it is necessary to reset the API key used by the Command Center.

First, log in to the Command Center host using SSH:

$ ssh silentdefense@<CC_IP_ADDRESS>

Next, reset the API key used by the Command Center by running these commands:

$ sudo docker exec -it icsp-core sqlite3 icsp_core/databases/icsp.db "DELETE FROM apikeys WHERE username='cc_user';"
$ sudo supervisorctl restart all

This will remove the API key from the ICSP-CC database and restart the Command Center to force-generate a new API key.