Alfresco Illegal key size Issue - Solved


Alfresco Illegal key size Issue 


Ever had to add a crypto key in alfresco configurations and ran into below issue? You can try the fix mentioned below to come out of it.

Caused by: java.security.InvalidKeyException: Illegal key size or default parameters
                at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1026)
                at javax.crypto.Cipher.implInit(Cipher.java:801)
                at javax.crypto.Cipher.chooseProvider(Cipher.java:864)
                at javax.crypto.Cipher.init(Cipher.java:1249)
                at javax.crypto.Cipher.init(Cipher.java:1186)
                at org.alfresco.consulting.module.distobj.impl.DefaultConfigurationService.validateCrypto(DefaultConfigurationService.java:371)



Solution

                Step 1: Download the JCE Unlimited jars from oracle downloads 
                Step 2: Add to your JDK or JRE lib under \lib\security\
                Step 3: Set below property in the <jdk or jre home>\lib\security\java.security
crypto.policy=unlimited

                Step 4: Restart the server

Share this

Related Posts

Previous
Next Post »

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
:-?
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
$-)
(y)
(f)
x-)
(k)
(h)
cheer