Dear,
I’ve a problem using curl with openhab user:
sudo -u openhab curl -k -H “Content-Type: application/json” -H “Authorization: Bearer KBFz5iq6Wa” --cert /var/lib/openhab2/tmp/samsungac_monolocale.pem --insecure -X PUT -d ‘{“Operation” : {“power” : “On”}}’ https://192.168.1.110:8888/devices/0
curl: (58) could not load PEM client certificate, OpenSSL error error:0200100D:system library:fopen:Permission denied, (no key found, wrong pass phrase, or wrong file format?)
Where can I save my pem file for to have access to them?
I must use openhab user for to have the same conditions present in “executeCOmmandLine” statement inside rules.
Can you help me please?
Fausto
.