OPSS - The getKeyStoreSecretKeyProperties script fails with JPS-06545 exception (Doc ID 2264402.1)

Last updated on AUGUST 28, 2017

Applies to:

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

Symptoms

OPSS 12.2.1.1.0 version, Java Platform Security

The getKeyStoreSecretKeyProperties script  fails with JPS-06545 exception

Observing the next error:

JPS-06545: The expected keystore entry with alias "my_alias" either does not exist or is not of the specified keystore entry type for keystore "my_keystore" in stripe "my_stripe"


The issue can be reproduced at will with the following steps:

1-   listKeyStoreAliases => appStripe='my_stripe'

wls:/my_domain/serverConfig/> svc.listKeyStoreAliases(
    appStripe='my_stripe',
    name='my_keystore',
    password='xxxxxx',
    type='*' )
Location changed to domainRuntime tree. This is a read-only tree
with DomainMBean as the root MBean.
For more help, use help('domainRuntime')

my_alias


2-  getKeyStoreCertificates =>  name='my_keystore',

wls:/my_domain/serverConfig/> svc.getKeyStoreCertificates(
   name='my_keystore',
   appStripe='my_stripe',
   name='my_keystore',
   password='xxxxxx',
   alias='my_alias',
   keypassword='xxxxxx'
)
Already in Domain Runtime Tree
........
 Subject:CN=example, CN=my_cm.com
 Signature Algorithm: SHA256withRSA,.......
...........................


3-  getKeyStoreSecretKeyProperties =>  alias='my_alias'

wls:/my_domain/serverConfig/> svc.getKeyStoreSecretKeyProperties(
   appStripe='my_stripe',
   name='my_keystore',
   password='xxxxxx',
   alias='my_alias',
   name='my_keystore',
   keypassword='xxxxxx'
   password='xxxxxx',
   alias='my_alias',
)
...    keypassword='xxxxxxxxx' \
...)
Already in Domain Runtime Tree

Command FAILED, Reason: JPS-06545: The expected keystore entry with alias "my_alias" either does not exist or is not of the specified keystore entry type for keystore "my_keystore" in stripe "my_stripe".

Traceback (innermost last):
 File "<console>", line 7, in ?
 File "/MW_HOME/my_domain/oracle_common/modules/internal/features/oracle.fmwshare.pyjar.jar!/wlstScriptDir/jpsWlstCmd.py", line 2543, in getKeyStoreSecretKeyProperties
 File "/MW_HOME/my_domain/oracle_common/modules/internal/features/oracle.fmwshare.pyjar.jar!/wlstScriptDir/jpsWlstCmd.py", line 2521, in getKeyStoreSecretKeyPropertiesImpl
javax.management.MBeanException: JPS-06545: The expected keystore entry with alias "my_alias" either does not exist or is not of the specified keystore entry type for keystore "my_keystore" in stripe "my_stripe".
       at weblogic.utils.StackTraceDisabled.unknownMethod()
Caused by: oracle.as.jmx.framework.exceptions.ManagementException: JPS-06545: The expected keystore entry with alias "my_alias" either does not exist or is not of the specified keystore entry type for keystore "my_keystore" in stripe "my_stripe".
       ... 1 more

javax.management.MBeanException: javax.management.MBeanException: JPS-06545: The expected keystore entry with alias "my_alias" either does not exist or is not of the specified keystore entry type for keystore "my_keystore" in stripe "my_stripe".
.....................

 

For more reference

2.1.3.12 getKeyStoreSecretKeyProperties

 

Changes

 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms