My Oracle Support Banner

Error Calling WebCenter APIs: oracle.wsm.security.SecurityException: WSM-00056 : The key, enc-csf-key, is not retrieved. (Doc ID 1294445.1)

Last updated on JULY 10, 2020

Applies to:

Oracle WebCenter Portal - Version 11.1.1.3.0 and later
Information in this document applies to any platform.

Symptoms


Unable to call the WebCenter APIs from a custom WebCenter Framework application.

The WebCenter Spaces log shows the following errors:

[2011-01-22T09:33:34.011+05:30] [WLS_Spaces] [ERROR] [WSM-00006] [oracle.wsm.resources.security] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <USERNAME>] [ecid: <ECID>] [WEBSERVICE_PORT.name: SpacesWebServiceSoapHttpPort] [APP: webcenter] [J2EE_MODULE.name: webcenter] [dcid: <DCID>] [WEBSERVICE.name: SpacesWebService] [J2EE_APP.name: webcenter] [arg: oracle.wsm.security.SecurityException: WSM-00056 : The key, enc-csf-key, is not retrieved.] Error in receiving the request: oracle.wsm.security.SecurityException: WSM-00056 : The key, enc-csf-key, is not retrieved..

[2011-01-22T09:33:34.084+05:30] [WLS_Spaces] [ERROR] [WSM-07607] [oracle.wsm.resources.enforcement] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <USERNAME>] [ecid: <ECID>] [WEBSERVICE_PORT.name: SpacesWebServiceSoapHttpPort] [APP: webcenter] [J2EE_MODULE.name: webcenter] [dcid: <DCID>] [WEBSERVICE.name: SpacesWebService] [J2EE_APP.name: webcenter] [arg: {http://schemas.oracle.com/ws/2006/01/securitypolicy}wss10-saml-with-certificates] [arg: oracle.wsm.security.policy.scenario.executor.Wss10SamlWithCertsScenarioExecutor] Failure in execution of assertion {http://schemas.oracle.com/ws/2006/01/securitypolicy}wss10-saml-with-certificates executor class oracle.wsm.security.policy.scenario.executor.Wss10SamlWithCertsScenarioExecutor.

[2011-01-22T09:33:34.086+05:30] [WLS_Spaces] [ERROR] [WSM-07602] [oracle.wsm.resources.enforcement] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <USERNAME>] [ecid: <ECID>] [WEBSERVICE_PORT.name: SpacesWebServiceSoapHttpPort] [APP: webcenter] [J2EE_MODULE.name: webcenter] [dcid: <DCID>] [WEBSERVICE.name: SpacesWebService] [J2EE_APP.name: webcenter] Failure in WS-Policy Execution due to exception.

[2011-01-22T09:33:34.194+05:30] [WLS_Spaces] [ERROR] [WSM-07501] [oracle.wsm.resources.enforcement] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <USERNAME>] [ecid: <ECID>] [WEBSERVICE_PORT.name: SpacesWebServiceSoapHttpPort] [APP: webcenter] [J2EE_MODULE.name: webcenter] [dcid: <DCID>] [WEBSERVICE.name: SpacesWebService] [J2EE_APP.name: webcenter] [arg: security] [arg: agent.function.service] [arg: webcenter] [arg: null] [arg: SpacesWebService] [arg: oracle/wss10_saml_token_with_message_protection_service_policy] [arg: 1] [arg: {http://schemas.oracle.com/ws/2006/01/securitypolicy}wss10-saml-with-certificates] Failure in Oracle WSM Agent processRequest, category=security, function=agent.function.service, application=webcenter, composite=null, modelObj=SpacesWebService, policy=oracle/wss10_saml_token_with_message_protection_service_policy, policyVersion=1, assertionName={http://schemas.oracle.com/ws/2006/01/securitypolicy}wss10-saml-with-certificates.[[
oracle.wsm.common.sdk.WSMException: GenericFault : generic error
at oracle.wsm.security.policy.scenario.executor.Wss10SamlWithCertsScenarioExecutor.receiveRequest(Wss10SamlWithCertsScenarioExecutor.java:191)
at oracle.wsm.security.policy.scenario.executor.SecurityScenarioExecutor.execute(SecurityScenarioExecutor.java:530)
at oracle.wsm.policyengine.impl.runtime.AssertionExecutor.execute(AssertionExecutor.java:41)
at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.executeSimpleAssertion(WSPolicyRuntimeExecutor.java:608)
at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.executeAndAssertion(WSPolicyRuntimeExecutor.java:335)
at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.execute(WSPolicyRuntimeExecutor.java:282)
...

Caused by: oracle.wsm.security.SecurityException: WSM-00056 : The key, enc-csf-key, is not retrieved.
at oracle.wsm.security.jps.WsmKeyStore.getJavaPrivateKey(WsmKeyStore.java:444)
at oracle.wsm.security.jps.WsmKeyStore.getCryptKey(WsmKeyStore.java:506)
at oracle.wsm.security.policy.scenario.processor.Wss10X509TokenProcessor.verify(Wss10X509TokenProcessor.java:282)
at oracle.wsm.security.policy.scenario.executor.Wss10SamlWithCertsScenarioExecutor.receiveRequest(Wss10SamlWithCertsScenarioExecutor.java:167)
... 52 more

]]


Steps To Reproduce:

  1. Create a custom WebCenter application that call the WebCenter Spaces APIs.
     
  2. Secure the Connection Between the Application and WebCenter Spaces.
     
  3. Deploy and run the Custom WebCenter Application to call the WebCenter APIs.
    Here you should see the errors in the WebCenter Spaces log.


 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.