How to enable debug option in OpenCA software

Installing and configuring OpenCA is not that easy – lots of configuration files, templates, XML files, messy directory structures and outdated documentation. So there are chances that you will end up with lot of errors. That’s the reason, I had written plenty of tutorials on OpenCA and its issues. What makes debugging tough is, some errors does not give clue of what the issue is and some might even mislead. Thankfully, OpenCA lets you customize log level and this tutorial will explain how to enable debug option in OpenCA.

Enable debug option in OpenCA

Step 1: To enable the debug option in OpenCA, open log.xml.  For example, in my installation the log file is located in /home/openca/etc/openca/log.xml. So you might have to refer the right path in your system.

                      <prefix>OpenCA PKI Log Message</prefix>

Step 2: Replace 0 with 1 between <debug>0</debug> and the logs would be written to stderr.log file, located at <openca_install_dir>/var/openca/log/stderr.log.

Step 3: Restart OpenCA daemon.

# <openca_install_dir>/etc/init.d/openca restart

Remember to replace <openca_install_dir> with the OpenCA installation path.

Updated on March 12, 2018

Was this article helpful?

Related Articles

Leave a Comment