Forum Discussion

talawahdotnet's avatar
14 years ago

InvalidKeyException when encryting messages with aes256-cbc

When selecting the encryption settings for outgoing messages in SoapUI 4.0.1 (and 3.6.1) I get the following error in soapUI.log if I try to select http://www.w3.org/2001/04/xmlenc#aes256-cbc or http://www.w3.org/2001/04/xmlenc#aes192-cbc as the Symmetric Encoding Algorithm:

ERROR:An error occured [Cannot encrypt data; nested exception is:
org.apache.xml.security.encryption.XMLEncryptionException: Illegal key size or default parameters
Original Exception was java.security.InvalidKeyException: Illegal key size or default parameters], see error log for details

http://www.w3.org/2001/04/xmlenc#aes128-cbc and http://www.w3.org/2001/04/xmlenc#tripledes-cbc work just fine, however the WCF service that I am connecting to requires aes256-cbc.

Is this a known bug or am I doing something wrong?