I get the error below when I try to sync Openremote designer with my controller. Is the problem on my side or on the other end?
Downloading account configuration failed : sun.security.validator.ValidatorException: PKIX path building failed: java.security.cert.CertPathBuilderException: No issuer certificate for certificate in certification path found.
If anyone
having problems with this as well, here is what I have done to resolve the certificate
issue on my Windows installation. Another way may be to upgrade to a later Java
version since that may come with updated root certs. However, I did not want to
change anything that works for the moment.
You need to
download the root certificate “Digicert Global Root G2” and intermedia
certificate “RapidSSL TLS RSA CA G1” from https://knowledge.digicert.com/generalinformation/INFO1548.html. I also attach the certificates here
if you prefer that instead of downloading.
Your Java path
folder may differ from mine, so you must replace path to cacers file in the lines
below. In example I put downloaded root files to C:\Install. I could be a good
idea to make a backup copy of the file “C:\Program
Files\Java\jdk1.8.0_66\jre\lib\security\cacerts” before you proceed.
From a
command prompt, navigate to the Bin folder of your JDK, “C:\Program
Files\Java\jdk1.8.0_66\jre\bin” on my installation.
Run the commands
below. You will get prompted to enter keystore password, this is by default “changeit”.
this worked for me:
keytool -keystore /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/lib/security/cacerts -import -trustcacerts -alias designer_selfsigned1 -file openremote.crt
To centralize everything into a single place, and prevent you from having to download a file from an unknown user on the internet, here are the directions (works for me on a Raspberry Pi):
The server is using a self signed certificate. Download a copy from the server by using this command: