opendj 5 sync password to opendim 4: java.security.InvalidKeyException: Illegal

Tagged: 

This topic has 1 reply, 1 voice, and was last updated 4 years, 4 months ago by cristianoburgo.

  • Author
    Posts
  • #18249
     cristianoburgo
    Participant

    i’m just configured the password sync between opendj 5 and openidm 4.
    When I changed the password on the opendj side, this is successfully propagated to the openidm side but this error is shown:

    lug 24, 2017 4:02:29 PM org.forgerock.openidm.servlet.internal.ServletConnectionFactory$4 handleException
    WARNING: Resource exception: 500 Internal Server Error: "Wrapped org.forgerock.json.JsonException: org.forgerock.json.crypto.JsonCryptoException: java.security.InvalidKeyException: Illegal key size (/home/openidm/openidm/bin/defaults/script/policy.js#745) in /home/openidm/openidm/bin/defaults/script/policy.js at line number 745 at column number 0"
    org.forgerock.json.resource.InternalServerErrorException: Wrapped org.forgerock.json.JsonException: org.forgerock.json.crypto.JsonCryptoException: java.security.InvalidKeyException: Illegal key size (/home/openidm/openidm/bin/defaults/script/policy.js#745) in /home/openidm/openidm/bin/defaults/script/policy.js at line number 745 at column number 0
    	
    	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
    	at java.lang.Thread.run(Thread.java:745)
    Caused by: org.forgerock.script.exception.ScriptThrownException: Wrapped org.forgerock.json.JsonException: org.forgerock.json.crypto.JsonCryptoException: java.security.InvalidKeyException: Illegal key size (/home/openidm/openidm/bin/defaults/script/policy.js#745) in /home/openidm/openidm/bin/defaults/script/policy.js at line number 745 at column number 0 org.forgerock.json.JsonException: org.forgerock.json.crypto.JsonCryptoException: java.security.InvalidKeyException: Illegal key size
    	at org.forgerock.script.javascript.RhinoScript.eval(RhinoScript.java:321)
    	at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    		at org.forgerock.script.registry.ScriptRegistryImpl$ScriptImpl.eval(ScriptRegistryImpl.java:752)
    	at org.forgerock.openidm.script.ScriptedRequestHandler.handleAction(ScriptedRequestHandler.java:152)
    	... 132 more
    Caused by: org.forgerock.json.JsonException: org.forgerock.json.crypto.JsonCryptoException: java.security.InvalidKeyException: Illegal key size
    	at org.forgerock.json.crypto.JsonCryptoTransformer.transform(JsonCryptoTransformer.java:52)
    	at org.forgerock.json.JsonValue.applyTransformers(JsonValue.java:444)
    	at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
    
    	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
    	at javax.crypto.Cipher.init(Cipher.java:1396)
    	at javax.crypto.Cipher.init(Cipher.java:1327)
    	at org.forgerock.json.crypto.simple.SimpleDecryptor.decrypt(SimpleDecryptor.java:88)
    	... 160 more
    #18256
     cristianoburgo
    Participant

    just solved the issue updating the Java Cryptography Extension (JCE) to the Unlimited Strength Jurisdiction Policy Files according to my JDK and this error disappear.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

©2021 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?