Hello all,
works out for me and sounds sensible.
Best regards,
Willi
Hello all,
works out for me and sounds sensible.
Best regards,
Willi
Thanks for your input! I agree with the security hole that was in the previous snapshots, I removed these from google drive. I updated the code today to verify the certificate against the certificate chain, up to the root CA certificate (there’s an Apple Server CA that expires years before the root CA certificate).
Did you use the server CA or the root CA?
My latest snapshot (including certificate verification) can be found here: https://drive.google.com/file/d/10227PoeE4Dh4ZF2PCTH9MyMDeH_FKsyS/view?usp=sharing
Works for me locally
I’ve installed this snapshot on openhab 2.4.0 and am getting the following message:
bundle org.eclipse.smarthome.io.net:0.10.0.oh240 (118)[org.eclipse.smarthome.io.net.http.internal.ExtensibleTrustManager(122)] : The addTlsCertificateProvider method has thrown an exception
java.lang.NoClassDefFoundError: org/eclipse/smarthome/io/net/http/TrustAllTrustMananger
Caused by: java.lang.ClassNotFoundException: org.eclipse.smarthome.io.net.http.TrustAllTrustMananger cannot be found by org.openhab.binding.icloud_2.5.2.202001301255
Looks like I’m missing a dependency but not sure how to install it. Appreciate any advice.
I get the error when using maihacke’s snapshot. If I use yours nothing happens in openhab. I get no error messages and none of my apple devices work. The jar is in the ‘addons’ folder and when I do a 'bundle:list: in the console the jar is listed however the state is ‘waiting’ I’ve rebooted the system and left it alone for around 20 minutes and the binding is still waiting.
Can you please try this snapshot? It turns out that we can simply get this binding more stable by using the root certificate (thanks for the pointer @maihacke!!!) , instead of the server certificate. I’ve tried this snapshot, and it works locally. It’s a much simpler change actually (see https://github.com/openhab/openhab-addons/pull/6948 for the new pull request)
Thanks Hawkeye! It worked!
Would be good if more people could check this latest snapshot; it’s already been approved for merging but would be good to hear if it’s working for more people before actually merging
It looks like it is working for me. openHAB2.5.2 stable plus iCloud binding snapshot posted. It doesn’t throw exceptions and connects successfully.
tested it on one 2.4 and one 2.5 installation and it works! Thanks.
in a first attempt I forgot to change the owner of the jar file to openhab after puting it into the /user/share/openhab2/addons folder on my rpi (just in case someone else is wondering why the addon is not being installed as well )
Being a newbie to this, I cant make this work on a pi, i have changed the owner to openhab, rebooted but i still get errors. I am not sure i have the correct jar file, bundle:list report :-
2.5.2.202002010827
Have i got the correct jar file ?
did you follow there steps?
Hi, thanks for that unfortunately I had done all that, twice !
error im getting seems to be something about a certificate
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Any idea what i have forgotten ?
gson is installed, right?
bundle:install https://repo1.maven.org/maven2/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar
Great thanks didn’t see that requirement Having installed that everything now works
Thanks for the great work.
Everything now working flawlessly.
Still not working reliable. I have installed the 2.5.2 Snapshot and after restarting it works for some hours. But then it is not updating datas anymore despite being shown as online. Disabling and enabling the device or ICloud it stays in the INITIALIZING mode and the Log Viewer shows:
[WARN ] [core.thing.internal.ThingManagerImpl] - Initializing handler for thing ‘icloud:device:xxxxxx:xxxxxx’ takes more than 5000ms. Anybody with the same issue and/or idea?
Didn´t had any errors today after installing this build!
Thanks for your work.
Installed, restarted openHAB and my iCloud connection returned without a single error in the log so far. Awesome work guys!