Running a clean install on Amazon Linux 2023. Followed the instructions on the install page for the soar-prepare-system command, not running clustered, default options for everything, created the phantom user with no trouble. /opt/splunk-soar is owned by phantom, ran the soar-install command as phantom, got through everything fine until the GitRepos step, hit this error:
"INSTALL: GitRepos
Configuring default playbook repos
Failed to bootstrap playbook repos
Install failed."
Detailed error logs look kind of ugly, but seeing this:
File \"/opt/splunk-soar/usr/python39/lib/python3.9/site-packages/git/cmd.py\", line 1388, in execute", " raise GitCommandError(redacted_command, status, stderr_value, stdout_value)", "git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)", " cmdline: git ls-remote --heads https://github.com/phantomcyber/playbooks", " stderr: 'fatal: unable to access 'https://github.com/phantomcyber/playbooks/': SSL certificate problem: self-signed certificate in certificate chain'"], "time_elapsed_since_start": 6.000021, "time_elapsed_since_operation_start": 4.386305}
The typical reason for this if you're doing it in corporate environment is TLS inspection sollution. It does a MITM on the connection and uses its own CA to dynamically create a cert for your connection. This CA's cert is typically pushed to endpoints with GPO, Ansible or whatever your company is using.
What would be the additional certificates in that case if I can add to avoid the issue? And where usually we can add those before starting installation?
Hi @SOAR_098
Is your instance behind a proxy server? Could you try the following to show what certificate is returned:
openssl s_client -showcerts -connect github.com:443🌟 Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing
I do see some certificates on executing these commands, do I need to add those somewhere before starting installation of SOAR?
@SOAR_098 The error which you encountered is because of ssl cert , the ssl cert is not trusted by the server.
Import the necessary cert to the host, you can refer the below url for more reference.
The error SSL certificate problem: self-signed certificate in certificate chain means the system’s CA trust store is incomplete. You need to fix certificate trust so the installer can clone the default playbook repo.
Run manually as the phantom user, you will be getting same error message.
git ls-remote https://github.com/phantomcyber/playbooksRefer below,
Regards,
Prewin
🌟If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!
Executing the below command, it does not give error
git ls-remote https://github.com/phantomcyber/playbooks
For this would need the certificate to add but this $SOAR_HOME/etc/cacerts.pem is created after SOAR is installed. So even if I add that missing certificate, during fresh reinstallation, how to add that certificate then?