Could not set encryption context during initialization error in Web Agent at start time
search cancel

Could not set encryption context during initialization error in Web Agent at start time

book

Article ID: 215350

calendar_today

Updated On:

Products

CA Single Sign On Agents (SiteMinder) SITEMINDER CA Single Sign On Secure Proxy Server (SiteMinder)

Issue/Introduction

The Web Agent is not working; it cannot start properly.

The Web agent logs show the agent started but with a repeated error:

[2264/2713495296][Tue May 18 2021 10:03:26][LLAWPLogQ.cpp:661][INFO][sm-AgentFramework-00590] LLAWP: Logging initialized.
[2264/2713495296][Tue May 18 2021 10:03:26][LLAWPLogQ.cpp:676][INFO][sm-AgentFramework-00630] LLAWP: Tracing initialized.
[2264/2617243392][Tue May 18 2021 10:03:26][LLAWPMsgBus.cpp:419][INFO][sm-AgentFramework-00660] LLAWP: Message bus initialized.
[2497/324937696][Tue May 18 2021 10:03:31][CSmLowLevelAgent.cpp:5246][INFO][sm-AgentFramework-00510] LLA: Logging initialized.
[2500/324937696][Tue May 18 2021 10:03:32][CSmAdminManager.cpp:987][ERROR][sm-AgentFramework-00930] ADMIN: Could not set encryption context during initialization.
[2500/324937696][Tue May 18 2021 10:03:32][CSmHighLevelAgent.cpp:122][ERROR][sm-AgentFramework-00400] HLA: Failed to initialize 'Administration Manager'.
[2500/324937696][Tue May 18 2021 10:03:32][SmPlugin.cpp:103][INFO][sm-AgentFramework-00180] Agent Framework plug-in 'SM_WAF_HTTP_PLUGIN' shutdown.
[2499/324937696][Tue May 18 2021 10:03:34][CSmLowLevelAgent.cpp:5246][INFO][sm-AgentFramework-00510] LLA: Logging initialized.
[2499/324937696][Tue May 18 2021 10:03:34][SmPlugin.cpp:66][INFO][sm-AgentFramework-00170] Agent Framework plug-in 'SM_WAF_HTTP_PLUGIN' initialized.  Description 'SiteMinder Agent HTTP Plug-in'.
[2499/324937696][Tue May 18 2021 10:03:34][CSmAdminManager.cpp:987][ERROR][sm-AgentFramework-00930] ADMIN: Could not set encryption context during initialization.
[2499/324937696][Tue May 18 2021 10:03:34][CSmHighLevelAgent.cpp:122][ERROR][sm-AgentFramework-00400] HLA: Failed to initialize 'Administration Manager'.
[2499/324937696][Tue May 18 2021 10:03:34][SmPlugin.cpp:103][INFO][sm-AgentFramework-00180] Agent Framework plug-in 'SM_WAF_HTTP_PLUGIN' shutdown.

Cause

Usually, when a Web Agent starts, the first thing it does is to contact the Policy Server and to retrieve its keys.

In this specific use case, it did not happen.

This is an indication that something could be wrong on the Policy Server side.

Investigating the Policy Server, the Policy Server logs show that the LDAP Policy Store was not running properly.

Hence, the Policy Server was not even running.

It can also be that the Policy Server process is UP, but not actually functioning.

The smps.log and the smtracedefault.log will show the error.

This explains why the Web Agent cannot get its keys from the Policy Server.

Resolution

Ensure the LDAP Policy Store is up and running, and working properly.

Then restart the Policy Server and the Web Agent to solve the issue.

Additional Information

<2025-10-07 ma.> :: patrick dussault : Removed pronouns; Modified title; Corrected typos; Updated versions;