I have been searching the forums on how to get SSL client certs to work with soapUI. I have specified the keystore and password but it does not look like soapUI is presenting the client certificate during SSL negotiations.
Is this a supported feature? If it is, can you specify the steps to follow to get this feature working?
I noticed that when I display the contents of my keystore file,
it shows mykey as a trustedCertEntry - I had read somewhere
that mykey needs to be a keyEntry and gave a command using
openssl on how to convert the crt cert file into a .cer or .der that
soapui will use.
Any more info on this?
thanks,
–Daniel
C:\MNG\certificates>keytool -list
Enter keystore password: fidelity
thanks for your feedback.. Would it be possible for you to try this with the beta2 version of soapUI 1.7.5 which has an updated ssl-library for reading and negotiating keys.. (and we could continue our error-search from there if it doesn’t work).. let me know!
I have installed soapUI 1.7.5 Pro beta and the same issue occurs.
I had listed the contents of the .keystore file in the prior posting.
It seems soapUI has a problem reading the keystore with the error:
2007-07-23 17:06:09,955 INFO [HttpClientSupport$Helper] Updating keyStore..
2007-07-23 17:06:09,971 ERROR [HttpClientSupport$Helper] Failed to load KeyMaterial [C:\Documents and Settings\A416304.keystore] org.apache.commons.ssl.ProbablyBadPasswordException: Probably bad JKS password: java.io.IOException: Keystore was tampered with, or password was incorrect
2007-07-23 17:06:09,971 INFO [HttpClientSupport$Helper] Updating keyStore..
2007-07-23 17:06:09,971 ERROR [HttpClientSupport$Helper] Failed to load KeyMaterial [C:\Documents and Settings\A416304.keystore] java.security.KeyStoreException: No private keys found in keystore!
you need to import both the certificate and the private key into your keystore, which isn’t as easy as it sounds Fortunately, there is help at hand at http://www.agentbob.info/agentbob/79.html (credit to Daniel who found this link..)
Originally posted by khou1980 on February 28, 2011
But what if I don’t have a private key only have company issued root certificate and client authentification certificate, how do I wrap thest two certificats to create keystore file?
I have the same issue
Wed May 18 11:10:24 EDT 2011:ERROR:org.apache.commons.ssl.ProbablyBadPasswordException: Probably bad PKCS12 password: java.io.IOException: failed to decrypt safe contents entry: java.lang.ArithmeticException: / by zero
I tried to convert .pem files to .der format. cert file converted but not the key file. Key file after conversion it shows 0kb.
Can you please help if you already got the solution.