Refreshing Image URL with https/SSL and self-signed cert

Posted on
Sun Jan 13, 2019 2:12 pm
ZachBenz offline
Posts: 89
Joined: Feb 08, 2014

Refreshing Image URL with https/SSL and self-signed cert

Hi all,

I have a control page set up with a Refreshing Image URL pointing to a continuously refreshing image from a SecuritySpy camera, with SecuritySpy set up to serve a web interface - port 8001 for HTTP, and 8002 for HTTPS

e.g, the URL is something like:
http://username:password@127.0.0.1:8001 ... t=1080&401

With the refresh rate set to Continuous and the Image Size set to 1920x1080.

And this works great.

Now, if I instead use an https connection:
https://username:password@127.0.0.1:800 ... t=1080&401

I see errors in the Indigo log:
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>

The problem being that SecuritySpy uses a self-signed certificate.

I don't see an obvious way to either disable the certificate check for the Refreshing Image URL or to permanently add the self-signed certificate as trusted (it is already trusted at the system level via the macOS Keychain, but that trust chain doesn't appear to be used by Indigo). Is there a way to do either? I'd like to only run the SecuritySpy HTTPS server, and disable the HTTP one.

Posted on
Sun Jan 13, 2019 5:57 pm
lanbrown offline
Posts: 882
Joined: Sep 26, 2017

Re: Refreshing Image URL with https/SSL and self-signed cert

Are the calls being made from Python? If so, then you just need to tell Python not to validate the certificate. You'd only want to do this for what is calling SecuritySpy.

Alternately, you should also be able to install the cert into Python.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests