I am trying to get my loxone binding to work but keep getting the same error (see subject).
When looking at the binding doc i see this.
Encryption AES-256 JRE must have unrestricted security policy configured
Because i am using openhasbian i am connected with putty but i can not find a way to enable java in putty. I am a total noob in linux so i probalby missed the correct way to find it.
Java is running but this would imply the latest version is not installed. The unrestricted policy for encryption is now enabled by default in v9 and latest versions of 6 - 8
Java 9: Any official release!
Java 8u161 or later (Available now)
Java 7u171 or later (Only available through āMy Oracle Supportā)
Java 6u181 or later
I think you need this download , there is a read me in the zip file.
I think I had to do this a while back but recently it has just worked
ā¦ or perhaps you can update your java version but the above is probably easier.
I can not find the files that need to be overwritten in the folder
[06:40:51] openhabian@openHABianPi:/usr/lib/jvm/zulu-embedded-8-armhf/jre/lib/security$ ls
blacklisted.certs cacerts java.policy java.security policy
So i went deeper and found this
[06:57:21] openhabian@openHABianPi:/usr/lib/jvm/zulu-embedded-8-armhf/jre/lib/security/policy/unlimited$ ls
local_policy.jar US_export_policy.jar
That are the files but they are red. (they are also red in the limited folder) And i also can not do the cp command to that file.
Please follow these instruction to update your java security policy files
I fixed by following instructions here suhothayan.blogspot.com 33
How to install Java Cryptography Extension (JCE) unlimited strength jurisdictionā¦
How to over come āorg.apache.xml.security.encryption.XMLEncryptionException: Illegal key size or default parametersā or "java.security.Invā¦
overwrote files in both JRE and JDK security settings, restarted Java and opehab and now connected.
You will need to copy into $JAVA_HOME/jre/lib/security/policy/unlimited
the files local_policy.jar and US_export_policy.jar
make sure you have read and excutable permission for all
i.e. use chmod a+rx local_policy.jar
I tried the last command
[06:48:18] openhabian@openHABianPi:/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/lib/security$ chmod a+rx local_policy.jar
chmod: changing permissions of ālocal_policy.jarā: Operation not permitted