Comments (4)
As @rmhall suggested, I added a new config setting in the plugin which changes the properties of Axios:
rejectUnauthorized
: If the HTTPS agent should check the validity of SSL cert, set it to false to allow self-signed certs to work. Default is true.
I released a new version (v0.3.2) that integrates the new config setting.
from homebridge-pihole.
Just installed Hoobs on a Raspberry Pi 4 along side Apache, Nginx etc, and then installed Pihole, and am using a self-signed certificate and ran across this in terms of getting errors with this plugin to connect properly - errors around the self-signed certificate.
A quick and dirty fix for this is to edit index.ts or the dist of index.js and add this line after "use strict"
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
This will allow self-signed certs to work. Technically this should be set through a property in the Axios requests more info here: axios/axios#535
There ideally should be a config setting in this plugin to allow a user to indicate they are using a self-signed cert, which would then change the properties of the axis HTTPS agent accordingly.
from homebridge-pihole.
Big THX @arendruni . In my case your change works as intended.
from homebridge-pihole.
Hi @palasinio,
Sorry for the late answer, I can’t help you so much since I have never configured the plugin to use https, I have in plan to switch my personal configuration to use it, but I don’t know when I will.
Did you have a look at #9, in which a user was having a problem configuring the certificate within node?
from homebridge-pihole.
Related Issues (20)
- [BUG] Homebridge 1.3.0-beta 40 HOT 2
- New install, Pi Hole not accessible HOT 1
- Ability to toggle a block rule HOT 9
- Homebridge 1.3.1 : This plugin slows down Homebridge HOT 1
- [BUG] makeRequest debugging causes exception
- [BUG] New Pi-hole release (Pi-hole v5.4, Web Interface v5.6, FTL v5.9) seems to mess with homebridge-pihole? HOT 1
- error about gpis pins and device not being a Raspberry Pi HOT 15
- When running in Client Bridge no "add device" in HomeKit possible (connection fail) HOT 1
- [BUG] Homebridge taken offline if Pi-hole is down HOT 5
- [BUG] Pi-hole switch always in 'off' mode. HOT 10
- [BUG] Homekit switch not changing pihole state anymore HOT 3
- When homebridge ist startet, correct function requires singe switch on/off HOT 3
- [BUG]Pi-Hole switch in HomeKit still not working HOT 1
- Recent Pihole update broke plugin HOT 5
- Plug in not working. shows fine in Homekit but not responsive[BUG] HOT 3
- Connectivity broken in HomeKit as of Pi-Hole FTL v5.20 and Web v5.18 HOT 6
- [BUG] Homebridge-pihole plugin suddenly not working HOT 3
- Ability to toogle two piholes on and off with one button HOT 3
- [BUG] HOT 2
- [INFO]API chnaged with piHole v6 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-pihole.