May I ask what documentation are you following?
Here are the steps in brief:
Copy the default server.xml config to the "local" folder, and set it's corerct ownership, by running the next commands
sudo cp $JSONAR_BASEDIR/sonarfinder/conf/server.xml $JSONAR_LOCALDIR/sonarfinder/sudo chown sonarw.sonar $JSONAR_LOCALDIR/sonarfinder/server.xmlCopy the Certificate files to the "local" folder and set their permissions
sudo mkdir $JSONAR_LOCALDIR/ssl/certssudo cp <certificate and key files> $JSONAR_LOCALDIR/ssl/certs/sudo chown -R sonarw.sonar $JSONAR_LOCALDIR/ssl/certsEdit the local server.xml file that we copied in first step $JSONAR_LOCALDIR/sonarfinder/server.xml
<SSLHostConfig protocols="+TLSv1.2+TLSv1.1".....<Certificate certificateKeyFile="<Full Path to the key>"certificateFile="<Full Path to the certificate>"type="RSA"/></SSLHostConfig>Note: Must set full path to the certificate and key, do not use any environment variables.
Restart sonarfinder and test,
systemctl restart sonarfinder------------------------------
Sarvesh Lad
Tech Lead @ On-Prem Managed Services (WAF, DAM, DRA & Sonar)
------------------------------