Execute the following command to take the backup of certificates from the MongoDB before executing the commands to remove certificates:
mongoexport --ssl --sslAllowInvalidHostnames -u deploy_admin --authenticationDatabase admin --db security-server --collection certificate --out /root/certificate.json
1. On the Admin Server login to Mongo Database
mongo admin -u deploy_admin -p <deploy_admin_password>
2. Execute the following commands:
use security-server
db.certificate.remove({"_id" : "rsa-nw-esa-analytics-server"})
db.certificate.remove({"_id" : "<service id of decommissioned ESA Analytics server>"})
For example: db.certificate.remove({"_id" : "9d8490dd-c504-4c99-9b0b-1c6daedb0b41"})
exit
3. Restart the Mongo service and Jetty service.
service mongod restart
systemctl restart jetty