When attempting to configure SSL on the DX NetOps Data Aggregator using a PKCS12 (.p12 or .pfx) keystore, the sslConfig.sh script fails with the following error:
/opt/IMDataAggregator/scripts/sslConfig.sh: line 941: count_certs_in_CF_FILENAME: command not found
There is a hardcoded typo in the /opt/IMDataAggregator/scripts/sslConfig.sh script. On line 941, the script incorrectly attempts to call a function named count_certs_in_CF_FILENAME. However, the correct function name defined elsewhere in the script is count_certs_in_FILENAME.
This issue is tracked via defect DE183857.
sed or vi available on the system path./opt/IMDataAggregator/scripts/sslConfig.sh.Run the following command. If it returns output, the defect is present and the patch is needed. If it returns nothing, the file is already corrected — stop here.
# Should print approximately: 941: count_certs_in_CF_FILENAME "${CF_FILENAME}" grep -n 'count_certs_in_CF_FILENAME' \ /opt/IMDataAggregator/scripts/sslConfig.sh
Always back up the original before editing. The backup name includes today's date to avoid collisions.
cp /opt/IMDataAggregator/scripts/sslConfig.sh \ /opt/IMDataAggregator/scripts/sslConfig.sh.bak.$(date +%Y%m%d)
Choose one of the two methods below.
sed -i 's/count_certs_in_CF_FILENAME/count_certs_in_FILENAME/g' \ /opt/IMDataAggregator/scripts/sslConfig.sh
The -i flag edits the file in place. The g modifier handles the unlikely case of duplicate typos.
vi +941 /opt/IMDataAggregator/scripts/sslConfig.sh
Navigate to line 941 and change the line to match the after row in the diff below, then save with :wq.
Run both checks. The first must return nothing; the second must return exactly four lines.
# Must return empty — bad symbol is gone grep -n 'count_certs_in_CF_FILENAME' \ /opt/IMDataAggregator/scripts/sslConfig.sh # Must return 4 lines: 1 function definition + 3 pre-existing + 1 repaired call site grep -n 'count_certs_in_FILENAME' \ /opt/IMDataAggregator/scripts/sslConfig.sh
941: count_certs_in_CF_FILENAME "${CF_FILENAME}"# grep CF_FILENAME: (no output) # grep FILENAME: 4 matching lines
If this returns nothing, the build has additional corruption and this patch alone is insufficient. Escalate to support.
grep -n 'count_certs_in_FILENAME\(\)' \ /opt/IMDataAggregator/scripts/sslConfig.sh
Expected: one line with the function declaration, e.g. count_certs_in_FILENAME() {