AnsweredAssumed Answered

An issue with handling encryption was encountered

Question asked by Pradeep Kadambar Employee on Jan 27, 2018
Latest reply on Feb 2, 2018 by Pradeep Kadambar

Version  : 7.0.1 P02

Server   : Web Sphere 8.5.5

 

The error is thrown while resetting the password for AD.

 

From the logs

Exception while processing the automated request for item 311, exception is: An issue with handling encryption was encountered
       
java.lang.IllegalStateException: An issue with handling encryption was encountered
at com.aveksa.common.crypto.EncryptionMgr.decrypt(EncryptionMgr.java:501)
at com.aveksa.server.core.TempPasswordServiceProvider.decryptValue(TempPasswordServiceProvider.java:320)
at com.aveksa.server.core.TempPasswordServiceProvider.getDecryptedTempPasswordValue(TempPasswordServiceProvider.java:256)
at com.aveksa.server.core.TempPasswordServiceProvider.getDecryptedTempPasswordValue(TempPasswordServiceProvider.java:242)
at com.aveksa.server.core.TempPasswordServiceProvider.getDecryptedTempPasswordValue(TempPasswordServiceProvider.java:219)
at com.aveksa.server.core.TempPasswordServiceProvider.populatePasswords(TempPasswordServiceProvider.java:431)
at com.aveksa.afx.plugin.integration.AFXConnectorCommandMappingUtils.populateParameterMap(AFXConnectorCommandMappingUtils.java:118)
at com.aveksa.afx.plugin.integration.fulfillment.FulfillmentManager.getKnownVariables(FulfillmentManager.java:498)
at com.aveksa.afx.plugin.integration.fulfillment.FulfillmentManager.doParameterReplacement(FulfillmentManager.java:339)
at com.aveksa.afx.plugin.integration.fulfillment.FulfillmentManager.queueCommand(FulfillmentManager.java:473)
at com.aveksa.afx.plugin.integration.fulfillment.FulfillmentManager.handleAutomaticItems(FulfillmentManager.java:278)
at com.aveksa.afx.plugin.integration.fulfillment.FulfillmentManager.fulfillChanges(FulfillmentManager.java:67)
at com.aveksa.afx.plugin.integration.fulfillment.AFXFulfillmentHandler.fulfillChanges(AFXFulfillmentHandler.java:37)
at com.aveksa.server.workflow.scripts.nodes.FulfillmentHandlerNode.fulfillChangesImpl(FulfillmentHandlerNode.java:243)
at com.aveksa.server.workflow.scripts.nodes.FulfillmentHandlerNode.nodeAvailableAsynchronous(FulfillmentHandlerNode.java:106)
at com.aveksa.server.workflow.scripts.nodes.WorkflowNodeHandler.nodeAvailableAsynchronous(WorkflowNodeHandler.java:53)
at sun.reflect.GeneratedMethodAccessor315.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at com.workpoint.server.script.StatementEngineJava.execute(Unknown Source)
at com.workpoint.server.script.ScriptEngine.A(Unknown Source)
at com.workpoint.server.script.ScriptEngine.execute(Unknown Source)
at com.workpoint.server.monitor.ActionMonitorHelper.A(Unknown Source)
at com.workpoint.server.monitor.ActionMonitorHelper.execute(Unknown Source)
at com.workpoint.server.pojo.ScriptExecAsyncPvtBean.executeScriptMonitor(Unknown Source)
at com.workpoint.server.pojo.EJSRemote0SLScriptExecAsyncPvt_EJB_8b5c6ed5.executeScriptMonitor(EJSRemote0SLScriptExecAsyncPvt_EJB_8b5c6ed5.java)
at com.workpoint.server.pojo._ScriptExecAsyncPvt_Stub.executeScriptMonitor(_ScriptExecAsyncPvt_Stub.java:1)
at com.workpoint.client.Monitor.executeScriptMonitor(Unknown Source)
at com.workpoint.queue.work.ActionQWorker.A(Unknown Source)
at com.workpoint.queue.work.ActionQWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1157)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:627)
at java.lang.Thread.run(Thread.java:798)
Caused by:
com.aveksa.common.crypto.EncryptionException: Value to be decrypted has no associated encryptor for its embedded key version: keyVersion[Wp0]; Value[ENCAWp0(0vz...)]
-- Check that the security key file is not missing
at com.aveksa.common.crypto.EncryptionMgr.decrypt(EncryptionMgr.java:495)
... 32 more

The key directory property is set on Web Sphere

P.S. The Web Sphere is running as root and hence has access to these keys.

Outcomes