philcms1
16 years agoOccasional Contributor
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
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