My Oracle Support Banner

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

Last updated on MARCH 04, 2019

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 "<ALIAS>" either does not exist or is not of the specified keystore entry type for keystore "<KEYSTORE>" in stripe "<STRIPE_NAME>"


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

1- Start wlst, connect with the Admin Server, and run listKeyStoreAliases() script

wls:/my_domain/serverConfig/> svc.listKeyStoreAliases(appStripe='my_stripe',name='my_keystore',password='<PASSWORD>',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-  Run the getKeyStoreCertificates() script
 

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


3-  Run the getKeyStoreSecretKeyProperties() script

wls:/my_domain/serverConfig/> svc.getKeyStoreSecretKeyProperties(
appStripe='my_stripe',
name='my_keystore',
password='<PASSWORD>',
alias='my_alias',
name='my_keystore',
keypassword='<PASSWORD>'
password='<PASSWORD>',
alias='my_alias',
)
... keypassword='<PASSWORD>' \
...)
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/oracle_common/modules/internal/features/oracle.fmwshare.pyjar.jar!/wlstScriptDir/jpsWlstCmd.py", line 2543, in getKeyStoreSecretKeyProperties
File "/MW_HOME/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".
.....................

Reference

2.1.3.12 getKeyStoreSecretKeyProperties

 

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.