just tried the HP Printer Binding. Have got two printers, the newer one is a Color Laserjet M553.
I created the thing file, interesting: I had to add some additional routes in the firewall.
After that, instead of coming online, the Thing gives error:
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Thank you. I found that post, but this raises the question about the hp binding…
I don’t believe there are much openHAB users creating official certificates for their printer instead using default (hp comes directly with self signed certificates)
As long as it is related to the certificate you can try to import it into the openhab java keystore or ‘relax’ the security on OH application level by adding a java option - from security point of view this isn’t a good idea.
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
EDIT: After restart openhab sometimes I got:
javax.net.ssl.SSLHandshakeException: No subject alternative names present
I think I previously used the wrong buzz word.
Instead of keystore I should have written java trust store or java cert store.
This one is stored in a lib directory in your java installation.
E.g.
/opt/jdk/zulu11.50.19-ca-jdk11.0.12-linux_aarch32hf/lib/security/cacerts or
/usr/lib/jvm/java-11-openjdk-amd64/lib/security/cacerts
Which name of the printer ( just hostname or FQDN ? )is stored in the certificate and which name ( hostname, FQDN, IP ) do you use in the binding ?
Does it work if you use the same name ?