Comments (5)
Hello, there is already a way to trust additional certs: https://nodejs.org/api/cli.html#node_extra_ca_certsfile
from orbital-sync.
Hey @joeavelar, I just came across this same issue and here's how I fixed it using the above reference with Docker compose:
volumes:
- /my/host/path/certificateName.crt:/usr/local/share/ca-certificates/certificateName.crt
environment:
NODE_EXTRA_CA_CERTS: '/usr/local/share/ca-certificates/certificateName.crt'
Obviously I'm using a CA certificate and the solution might be a little different if it's a single cert.
from orbital-sync.
Hello, there is already a way to trust additional certs: https://nodejs.org/api/cli.html#node_extra_ca_certsfile
Hi @sambartik, I'm a noob so could you toss me a bone. ;) I added the following line to my docker compose file:
- SSL_CERT_FILE: './ssl-cert.pem'
but I'm still seeing this error in the logs.
6/24/2023, 8:55:02 PM: ➡️ Signing in to https://pi-hole.local.com/admin...
6/24/2023, 8:55:02 PM: ⚠ Failure: An unexpected error was thrown:
- FetchError: request to https://pi-hole.local.com/admin/index.php?login failed, reason: self-signed certificate in certificate chain
How should we be enabling this with a docker container? Thank you.
from orbital-sync.
What I am going to say here is no way secure. It's just a workaround in case you need it.
I am using a self-signed certificate, which I could have workaround with the NODE_EXTRA_CA_CERTS variable, but it did not work because the cert is expired, so I found out about this:
NODE_TLS_REJECT_UNAUTHORIZED: 0
This completely ignores whatever is wrong with the certificates.
Use at your own risk. Not a legal advice. 😁
from orbital-sync.
Thanks for all the info guys, I've since switched to running Let's Encrypt certificates inside my home network, so this issue is not needed for me anymore.
from orbital-sync.
Related Issues (20)
- Syncs are failing with the latest pihole update HOT 7
- Successfull sign in but failure at download backup HOT 10
- Fetcherror
- Support passwordless pihole installations HOT 3
- Unable to Connect to PI-Hole on same Docker Instance HOT 6
- Failure: No token could be found while logging in to "http://10.0.40.5/admin" - are you able to log in with the configured password? HOT 2
- MODULE_NOT_FOUND sync.js HOT 3
- [Feature Request] Sync advanced DNS settings HOT 1
- Pihole V6
- Ability to sync config to cloud for backup
- Whitelists not syncing HOT 1
- SMTP is misconfigured HOT 13
- Implement Health Status
- Unable to sync third secondary pihole HOT 2
- Group management status not synchronized to second pi-hole HOT 2
- ERR_MODULE_NOT_FOUND. Sync.js not found HOT 1
- Update "latest" tag on Docker Hub HOT 4
- [RFE] Notifications via apprise HOT 1
- new docker install 1.6 wont start HOT 3
- Set TZ for correct show log time and format HOT 3
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 orbital-sync.