My Oracle Support Banner

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

Last updated on MARCH 01, 2023

Applies to:

Oracle Platform Security for Java - Version 12.2.1.1.0 to All
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='<STRIPE_NAME>',name='<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='<STRIPE_NAME>',appStripe='<STRIPE_NAME>',name='<KEYSTORE>',password='<PASSWORD>',alias='<ALIAS>',keypassword='<PASSWORD>')
 Already in Domain Runtime Tree
 ........
 Subject:CN=<COMPANY>, CN=com
 Signature Algorithm: SHA256withRSA,.......
 ...........................


3-  Run the getKeyStoreSecretKeyProperties() script

wls:/my_domain/serverConfig/> svc.getKeyStoreSecretKeyProperties(
appStripe='<STRIPE_NAME>',
name='<KEYSTORE>',
password='<PASSWORD>',
alias='<ALIAS>',
name='<KEYSTORE>',
keypassword='<PASSWORD>'
password='<PASSWORD>',
alias='<ALIAS>',
)
... keypassword='<PASSWORD>' \
...)
Already in Domain Runtime Tree

Command FAILED, Reason: 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>".

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 "<ALIAS>" either does not exist or is not of the specified keystore entry type for keystore "<KEYSTORE>" in stripe "<STRIPE_NAME>".
at weblogic.utils.StackTraceDisabled.unknownMethod()
Caused by: oracle.as.jmx.framework.exceptions.ManagementException: 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>".
... 1 more

javax.management.MBeanException: javax.management.MBeanException: 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>".
.....................

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.