My Oracle Support Banner

OPSS - Unable list the credentials and Keystore information in EM Getting KeyStoreServiceException (Doc ID 2290586.1)

Last updated on AUGUST 19, 2018

Applies to:

Oracle Platform Security for Java - Version 11.1.2.3.0 and later
Information in this document applies to any platform.

Symptoms

On : 11.1.2.3.0 version, Java Platform Security

After access to EM console and navigate to the Security to list Credentials or Keystore, and unable see the information

 

 

Observing the next error from EM log, i.e:emoms.log

[2017-05-22T15:59:41.222-05:00] [AdminServer] [NOTIFICATION] [] [oracle.sysman.emSDK.view.errPopup.ErrorPopupUtil] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: admin] [ecid: cf8a18d50cdfebe3:-1178ec8a:15c31f00437:-8000-000000000000003f,0] [APP: em] oracle.security.jps.service.keystore.KeyStoreServiceException: Failed to perform cryptographic operation
[2017-05-22T15:59:41.223-05:00] [AdminServer] [NOTIFICATION:32] [] [oracle.sysman.emSDK.view.errPopup.ErrorPopupUtil] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: admin] [ecid: cf8a18d50cdfebe3:-1178ec8a:15c31f00437:-8000-000000000000003f,0] [APP: em] oracle.security.jps.service.keystore.KeyStoreServiceException: Failed to perform cryptographic operation[[
oracle.sysman.emSDK.app.exception.EMSystemException
at oracle.sysman.emas.model.security.EMJpsASObject.throwsEMSystemException(EMJpsASObject.java:112)
at oracle.sysman.emas.model.security.cred.CredentialStoreAdminBean.findCredentialMaps(CredentialStoreAdminBean.java:278)
at oracle.sysman.emas.model.security.cred.CredentialStoreAdminBean.findCredentialMaps(CredentialStoreAdminBean.java:134)
at oracle.sysman.emas.pagemodel.security.cred.CredentialStoreHomePageModel.loadData(CredentialStoreHomePageModel.java:238)
at oracle.sysman.emas.pagemodel.security.cred.CredentialStoreHomePageModel.initializeData(CredentialStoreHomePageModel.java:176)
.................
Caused by: javax.management.RuntimeMBeanException: javax.management.RuntimeMBeanException: oracle.security.jps.service.keystore.KeyStoreServiceException: Failed to perform cryptographic operation
at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:205)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:222)
at javax.management.remote.rmi.RMIConnectionImpl_1036_WLStub.invoke(Unknown Source)
at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMIConnector.java:1021)
at weblogic.management.remote.wlx.ClientProvider$WLXMBeanServerConnectionWrapper.invoke(ClientProvider.java:291)
...............
Caused by: javax.management.RuntimeMBeanException: oracle.security.jps.service.keystore.KeyStoreServiceException: Failed to perform cryptographic operation
at oracle.as.jmx.framework.standardmbeans.spi.OracleStandardEmitterMBean.doInvoke(OracleStandardEmitterMBean.java:1034)
at oracle.adf.mbean.share.AdfMBeanInterceptor.internalInvoke(AdfMBeanInterceptor.java:104)
at oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterceptor.doInvoke(AbstractMBeanInterceptor.java:252)
at oracle.as.jmx.framework.generic.spi.security.AbstractMBeanSecurityInterceptor.internalInvoke(AbstractMBeanSecurityInterceptor.java:191)
.............
Caused by: java.lang.IllegalArgumentException: oracle.security.jps.service.keystore.KeyStoreServiceException: Failed to perform cryptographic operation
at oracle.security.jps.internal.credstore.ldap.CredentialEntityMapper.getEntity(CredentialEntityMapper.java:381)
at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.queryBaseEntities(JpsDBDataManager.java:7257)
at oracle.security.jps.internal.credstore.ldap.CsfStoreManager.readAllCredential(CsfStoreManager.java:743)
at oracle.security.jps.internal.credstore.ldap.LdapCredentialStore.readAllCredentials(LdapCredentialStore.java:850)
at oracle.security.jps.internal.credstore.CredentialMapImpl.readAllCredentials(CredentialMapImpl.java:506)
...............
Caused by: oracle.security.jps.service.keystore.KeyStoreServiceException: Failed to perform cryptographic operation
at oracle.security.jps.internal.keystore.util.CryptoUtil.decrypt(CryptoUtil.java:498)
at oracle.security.jps.internal.keystore.util.CryptoUtil.decodeAliasWithEncryptedContent(CryptoUtil.java:575)
at oracle.security.jps.internal.keystore.util.CryptoUtil.decryptPassword(CryptoUtil.java:789)
at oracle.security.jps.internal.credstore.ldap.CredentialEntityMapper.getEntity(CredentialEntityMapper.java:300)
... 142 more
Caused by: javax.crypto.BadPaddingException: Given final block not properly padded
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:811)
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:676)
at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:420)
at javax.crypto.Cipher.doFinal(Cipher.java:2131)
at oracle.security.jps.internal.keystore.util.CryptoUtil.decrypt(CryptoUtil.java:476)
... 145 more

]]

 

 

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


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