Coder Social home page Coder Social logo

Accept self signed certs about pyhik HOT 5 CLOSED

mezz64 avatar mezz64 commented on September 26, 2024
Accept self signed certs

from pyhik.

Comments (5)

mezz64 avatar mezz64 commented on September 26, 2024

There are two options for this, first is to not verify certs at all, which is not something i'd like to add for the obvious security implications. Second is to allow the specification of the path to your local certificate file to allow it to be verified.

The 2nd is feasible, but requires changes not only in the library, but to the home assistant component to add the additional configuration parameter. If you're only doing this for alexa compatibility i'd recommend you leave the cameras alone and proxy them through something else to give you your https layer as it's generally not a great idea to give them direct access to the internet.

from pyhik.

pdobrien3 avatar pdobrien3 commented on September 26, 2024

Thank you for your quick response. When you say proxy, do you mean something like nginx? I just setup a nginx proxy but was under the impression that was giving things direct access to the internet.

from pyhik.

mezz64 avatar mezz64 commented on September 26, 2024

Sure, nginx would work with something like the rtmp module added (https://github.com/arut/nginx-rtmp-module). You can let it proxy internally without opening anything up your firewall.

from pyhik.

HarryJHolmes avatar HarryJHolmes commented on September 26, 2024

Hi, I'm trying to use the native hikvision binary_sensor component in homeassistant and use a self-signed certificate. Surely by having a verify_ssl option it could default be true but changed to false for someone like me who can't install the certificate in homeassistant to verify it?

from pyhik.

mezz64 avatar mezz64 commented on September 26, 2024

The problem is adding that option to flow into homeassistant requires a significant number of changes at this point. The edits to pyhik are not extensive, but config changes to homeassistant will require this component to adopt the new config flow and that is not something I have time to complete at the moment.

I'll always accept PR's if it's something you'd like to tackle on your own.

from pyhik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.