Forum Discussion

philcms1's avatar
philcms1
Occasional Contributor
16 years ago

Keystores/Certificates -- failed to extract any certificates or private keys

Hi,

This seems to be a recurrent issue... however I couldn't find a complete solution in the forums. I found a topic on Sourceforge with the same problem but the solution (same password for keystore and priavte key) didn't make any sense.

http://sourceforge.net/forum/message.php?msg_id=4683168

I have created a keystore with the following command:

keytool -genkey -keyalg RSA -keystore test_keystore.jks -storepass asdf321 -alias test_key -keypass test_key_password -dname "CN=Test, OU=IHC, C=US" -keysize 1024 -validity 1460

When importing it in SoapUI, it gives me an error:
java.io.IOException: DerInputStream.getLength(): lengthTag=109, too big.
(BC as a provider gives another message: java.io.IOException: stream does not represent a PKCS12 key store)

In the console: KeyStoreException: failed to extract any certificates or private keys

I used the JRE provided with SoapUI 2.0.2 Pro as well as another JDK, with no success in both cases.

Any idea? Thanks!

Phil

2 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Phil,

    thanks for reporting, I'll dig in and will get back to you..

    regards!

    /Ole
    eviware.com
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi,

    ok.. this will be fixed in 2.X.. are you specifying the keystore at the global level or at the WS-Security configuration level? If you want I can provide you with a pre-release.. send me an email in that case (ole@eviware.com)

    regards!

    /Ole
    eviware.com