After a long night work, finally got HA bridge to work with Letsencrypt so now it works with HASS without having to sacrifice the encryption. all you have to do is install java 1.8.0u111 since it has lets encrypt as a trusted certificate. here is how I did it:
Installing Java Version 1.8.0u111
Just to make sure you start with a clean(ish) slate. uninstall java from your raspberry pi by running the following command:
- sudo apt-get remove --purge oracle-java8-jdk openjdk-7-jre oracle-java7-jdk openjdk-8-jre
Once that is done, install java 1.8.0_111 by going to this website and downloading the file shown in the picture below:
Extract the file in /opt, and set up java and javac by running the following command:
- sudo tar zxvf jdk-8-linux-arm-vfp-hflt.tar.gz -C /opt
- sudo update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0/bin/javac 1
- sudo update-alternatives --install /usr/bin/java java /opt/jdk1.8.0/bin/java 1
- sudo update-alternatives --config javac
- sudo update-alternatives --config java
After all that is done, make sure you installed everything correctly:
- java -version
- javac -version
Then restart our Pi
- sudo reboot
Things to make sure you got:
HA bridge running on port 80
HAbridge version 3.2.2 or higher (when applicable)
Now if someone can do this with less work please let me know!