Just Published! Threat Report: Exposing Malware in Linux-Based Multi-Cloud Environments | Download Now

cbssl sensor-certs Command Errors

cbssl sensor-certs Command Errors

Environment

  • Cb Response Server 6.2

Symptoms

  • Receiving the below python errors when using sensor-certs argument with cbssl:

/usr/share/cb/cbssl -c /etc/cb/cb.conf sensor_certs --list

coercing to Unicode: need string or buffer, NoneType found

Traceback (most recent call last):

  File "/home/azarembok/dev/cbent/code/coreservices/src/cb/utils/exceptions.py", line 70, in decorator

  return_code = f(*args, **kwargs)

  File "/usr/lib/python2.6/site-packages/cb/maintenance/cbssl/main.py", line 56, in main

  File "/home/azarembok/dev/cbent/code/coreservices/src/cb/utils/cli_cmd.py", line 33, in run_command

   return self.execute()

  File "/usr/lib/python2.6/site-packages/cb/maintenance/cbssl/commands/sensor_certs/cmd_main.py", line 97, in execute

  File "/usr/lib/python2.6/site-packages/cb/utils/config.py", line 796, in load

  File "/home/azarembok/dev/cbent/code/coreservices/src/cb/utils/configloader.py", line 56, in load

  with open(path, "r") as f:

TypeError: coercing to Unicode: need string or buffer, NoneType found

Cause

There is a command line parsing issue in the 6.2 version of cbssl

Resolution

This can be worked around by adding the -c option to the command line, e.g:

# /usr/share/cb/cbssl  sensor_certs -c /etc/cb/cb.conf --list

Additional Information
This will be address in a future release and is currently being track by CB-17069

Labels (1)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎12-14-2017
Views:
531
Contributors