Details
Description
While working with SoapUI 3.5 I came across a possible bug where CryptoBase.getPrivateKey() is unable to return a private key when the keystore is not protected by a password.
CryptoBase.java:261
Key keyTmp = keystore.getKey(alias, password.toCharArray());
proposed fix:
Key keyTmp = keystore.getKey(alias, password == null ? new char[]{} : password.toCharArray());
I do also realize that one could argue the issue to be SoapUI's fault, fix on that side would be to pass an empty string to the corresponding methods instead of the null value. In my opinion fixing it in the wss4j core seems to be more appropriate.