Add or remove certificates from the Splunk Phantom certificate store
To add a custom certificate to the certificate store:
phenv python2.7 /opt/phantom/bin/import_cert.py -i /tmp/ca.crt service uwsgi restart
In this example, the import_cert.py
script is copying the certificate file ca.crt
to the /opt/phantom/etc/certs/
directory, then consolidating all the files in that directory to the /opt/phantom/etc/cacerts.pem
file. The cacerts.pem
file is used by Splunk Phantom to verify all server certificates.
The service uswgi restart
restarts the web server so the updated cacerts.pem
file is reloaded.
If you need to remove a certificate that you have previously installed, perform the following tasks:
- Delete the file for that certificate from
/opt/phantom/etc/certs/
. - Run the
import_cert.py
script with no parameters. - Restart the web server.
Splunk Phantom certificate store overview | Troubleshooting certificate issues |
This documentation applies to the following versions of Splunk® Phantom (Legacy): 4.8
Feedback submitted, thanks!