Error: Set CAPKIHOME environment variable on Web Agent Apache
search cancel

Error: Set CAPKIHOME environment variable on Web Agent Apache

book

Article ID: 121289

calendar_today

Updated On:

Products

CA Single Sign On Secure Proxy Server (SiteMinder) CA Single Sign On SOA Security Manager (SiteMinder) CA Single Sign-On CA Single Sign On Agents (SiteMinder) SITEMINDER

Issue/Introduction

 

When starting Apache with Web Agent, this one may return the following error:

  [30/Oct/2018:19:32:17] [Information] SiteMinder Agent 
   SiteMinder agent is enabled. 

  [30/Oct/2018:19:32:17] [Information] SiteMinder Agent 
   Configuration file path: 
   '/etc/httpd/conf/WebAgent.conf'. 

   Please check atleast one of the following conditions are met. 

   *) Set CAPKIHOME environment variable. 
   *) Pass valid second parameter to etpki_lib_init function. Ex: if
      the second parameter is /a/b/c/[lib]cryptocme2.[dll][so][sl], it is
      assumed that /a/b/c has all the required CAPKI shared libraries

  [30/Oct/2018:19:32:17] [Error] SiteMinder Agent 
   Unable to load SiteMinder host configuration object or host configuration file. 
   /opt/CA/webagent/config/SmHost.conf 
   06 00 00 00 

  [30/Oct/2018:19:32:17] [Warning] SiteMinder Agent 
   SiteMinder agent has encountered initialization errors and will not service requests. 

 

Resolution

 

At first glance, by default the ca_wa_env.sh has the following values:

  NETE_WA_ROOT=/opt/CA/webagent 
  export NETE_WA_ROOT 
  NETE_WA_PATH=${NETE_WA_ROOT}/bin 
  export NETE_WA_PATH 

  CAPKIHOME=/opt/CA/webagent/CAPKI 
  export CAPKIHOME 

  LD_LIBRARY_PATH=${NETE_WA_ROOT}/bin:${NETE_WA_ROOT}/bin/thirdparty:${LD_LIBRARY_PATH} 
  export LD_LIBRARY_PATH 

  PATH=${NETE_WA_PATH}:${PATH}
  

Ensure that the script or service you run to start Apache has the environment variable CAPKIHOME set and all the environment variables of the ca_wa_env.sh script set too.