WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Encryption Operation with jasypt on WAS Liberty v17 and jre runtime

  • 1.  Encryption Operation with jasypt on WAS Liberty v17 and jre runtime

    Posted Wed March 07, 2018 11:18 AM

    HI all,

    I'm looking forward if anyone can help me in this, I'm using jasypt to decrypt an strong encrypted password during run time on WAS , since we migrated we are un able to decrypt the password due to the below error, seems that the java runtime is not set correctly, any one knows how to set the jre on WAS liberty correctly .

     

     

    [err] org.jasypt.exceptions.EncryptionOperationNotPossibleException: Encryption raised an exception. A possible cause is you are using strong encryption algorithms and you have not installed the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files in this Java Virtual Machine

    [err] at org.jasypt.encryption.pbe.StandardPBEByteEncryptor.handleInvalidKeyException(StandardPBEByteEncryptor.java:1073)

    [err] at org.jasypt.encryption.pbe.StandardPBEByteEncryptor.decrypt(StandardPBEByteEncryptor.java:1050)

    [err] at org.jasypt.encryption.pbe.StandardPBEStringEncryptor.decrypt(StandardPBEStringEncryptor.java:725)

    [err] at org.jasypt.properties.PropertyValueEncryptionUtils.decrypt(PropertyValueEncryptionUtils.java:72)

    [err] at org.jasypt.properties.EncryptableProperties.decode(EncryptableProperties.java:230)

    [err] at org.jasypt.properties.EncryptableProperties.getProperty(EncryptableProperties.java:172)



  • 2.  RE: Encryption Operation with jasypt on WAS Liberty v17 and jre runtime

    Posted Thu March 08, 2018 12:42 AM

    In order to install Java Cryptography Extension (JCE) unlimited strength jurisdiction policy files, you can follow the procedure below:

    1. Go to the ibm.com website at https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=jcesdk
    2. Specify your ibm.com website user ID and the password.
    3. Download the unrestrictedpolicyfiles.zip file.
    4. Stop the WebSphere® Application Server.
    5. Extract the contents of the compressed file to the <AppServer>\java\jre\lib\security directory. For example:
    6. Restart WebSphere Application Server.


  • 3.  RE: Encryption Operation with jasypt on WAS Liberty v17 and jre runtime

    Posted Sat March 10, 2018 10:27 PM

    Thank you it really worked ! I appricate your help.