Supergiovane/node-red-contrib-hikvision-ultimate

feature request: self-signed certs

sgoudelis opened this issue · 8 comments

Hello,

I am trying to authenticate to my NVR over SSL and I am getting:

"Errore  hikvisionUltimateGetInfoCam request to https://192.168.1.56:443/ISAPI/System/deviceInfo failed, reason: self signed certificate"

Is there a way perhaps to disable the cert check or offer it as an option perhaps?

Hi Stratos
That's strange. I've also an https connection, but i never had any issue.
Currently i'm on vacation and i cannot check it for you.
You should give me some time, i'll be back to home in august.

Sure, take care..

Hi Stratos
despite this issue, does the node work?

Yes it does with non-SSL authentication

Hi
i've made a "blind" change to a file. Are you able to paste the ZIP content, into your .node-red/node_modules/node-red-contrib-hikvision-ultimate/nodes folder, and restart node-red?
Please make a backup of your old Hikvision-config.js file before unzipping, so if in trouble, you can restore the old file.

Hikvision-config.js.zip

Sorry, for the delay, I will check this out soon. Thank you

Ok, please be aware that this file, works only with HTTPS.
If it runs OK, i've already done the properly changes to work on both http and https.
Please let me know if it works. If yes, i'll publish the updated version on npm.
Thanks

Yeah that worked. Thank you very much!