Hi, when running the above i get the option to add to the keystore ok, but when i say ‘Y’ i get the following error:
Certificate was added to keystore keytool error: java.io.FileNotFoundException: /jre/lib/security/cacerts (No such file or directory)
I then tried the command:
sudo keytool -import -trustcacerts -keystore securit -storepass changeit -alias PW2 -import -file cacert.pem
(ie, removed the path for the ‘securit’ comand)
and that said ‘Certificate added to keystore’ ok
Have restarted openhab, but am still getting the same error in the openhab logs ‘unable to find valid certificate’
I have also tried a direct command as suggested in the GIT Powerwall documentation you suggested above, but i get the error:
curl: (60) SSL certificate problem: unable to get local issuer certificate More details here: http://curl.haxx.se/docs/sslcerts.html
However, when i issue the curl command with -k it fetches the data from the Powerwall ok.
I’m not quite there yet! Is there a way to check if the cert has been loaded into the keystore?