"No keys found in keystore" error in BW while using keytool to import a certificate into a keystore file.

"No keys found in keystore" error in BW while using keytool to import a certificate into a keystore file.

book

Article ID: KB0093105

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Description:

Using keytool to import a certificate into a keystore file. But while using keytool in BW, the following error is thrown:

"caused by: com.tibco.security.AXSecurityException: com.tibco.security.AXSecurityException: No keys found in keystore."

Resolution

The solution is to convert the existing certificate and key into a PKCS12 file. Then use the keytool functionality to merge one keystore with another one. 

keytool importkeystore -deststorepass changeit -destkeypass changeit -destkeystore my-keystore.jks -srckeystore cert-and-key.p12 -srcstoretype PKCS12 -srcstorepass cert-and-key-password -alias some-alias

Issue/Introduction

"No keys found in keystore" error in BW while using keytool to import a certificate into a keystore file.