Supergiovane / node-red-contrib-hikvision-ultimate

A native set of node for Hikvision Cameras, Doorbells, Alarms, Radars etc.
https://www.facebook.com/supergiovaneDev
MIT License
46 stars 12 forks source link

feature request: self-signed certs #22

Closed sgoudelis closed 3 years ago

sgoudelis commented 3 years ago

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?

Supergiovane commented 3 years ago

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.

sgoudelis commented 3 years ago

Sure, take care..

Supergiovane commented 3 years ago

Hi Stratos despite this issue, does the node work?

sgoudelis commented 3 years ago

Yes it does with non-SSL authentication

Supergiovane commented 3 years ago

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

sgoudelis commented 3 years ago

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

Supergiovane commented 3 years ago

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

sgoudelis commented 3 years ago

Yeah that worked. Thank you very much!