8000 browsing to https gives error · Issue #35 · willnode/forward-domain · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

browsing to https gives error #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
eltyBelgium opened this issue Feb 5, 2025 · 10 comments
Open

browsing to https gives error #35

eltyBelgium opened this issue Feb 5, 2025 · 10 comments

Comments

@eltyBelgium
Copy link

If you setup a forward (domainA.com) and you forward (domainB.com)

and you browse to https://domainA.com you will receive a Privacy error.
Is there a way to fix this?

Image

@willnode
Copy link
Owner
willnode commented Feb 7, 2025

I notice sometimes this service ran out rate limit given by let's encrypt. Sometimes even let's encrypt totally refuse until I followed their notice link.

I have no alert set up to tell if SSL fails unless retroactively see logs. You can try to self host this service if it urgent.

@eltyBelgium
Copy link
Author

We are self-hosting it.

@willnode
Copy link
Owner
willnode commented Feb 7, 2025
  1. Do you use this service behind NGINX? If it yes, do not use http, use stream module.
  2. Try to visit HTTP part of the domain, usually incorrect config can be catched up.
  3. Try to dig some logs so I can know why.

@eltyBelgium
Copy link
Author

this service is just runnend on node server on linux in azure and is using pm2 for multi process management.
I'll search for the logs

@eltyBelgium
Copy link
Author

Where can i find the logs?

@willnode
Copy link
Owner
willnode commented Feb 7, 2025

PM2 should save some stdout logs. I use systemd and I casually search logs there.

@eltyBelgium
Copy link
Author

hmm how did you run the project through systemd?

@willnode
Copy link
Owner
willnode commented Feb 7, 2025

I just wrote this file

> cat /usr/lib/systemd/system/r.service
[Unit]
Description=Forward Domain Daemon
Documentation=https://forwarddomain.net
After=network.target

[Service]
Type=simple
User=r
WorkingDirectory=/home/r/public_html
ExecStart=/home/r/.local/opt/node/bin/node --env-file=.env app.js
Restart=always

[Install]
WantedBy=multi-user.target

And setup it up on top of nginx config

https://gist.github.com/willnode/7e6f1779d28828954c9b25cf9a7c4161

@eltyBelgium
Copy link
Author
eltyBelgium commented Feb 10, 2025

this is one of the errors:

app | at Client.pollAuthz (file:///forward-domain/forward-domain/src/certnode/lib/client.js:332:23)
0|app | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|app | at async Client.generateCertificate (file:///forward-domain/forward-domain/src/certnode/lib/client.js:77:9)
0|app | at async file:///forward-domain/forward-domain/src/sni.js:76:35
0|app | Error: pollAuthz() authorization is invalid: {
0|app | "challenge": {
0|app | "type": "http-01",
0|app | "url": "https://acme-staging-v02.api.letsencrypt.org/acme/chall/180089154/16014523314/XEimqw",
0|app | "status": "invalid",
0|app | "validated": "2025-02-10T12:45:19Z",
0|app | "error": {
0|app | "type": "urn:ietf:params:acme:error:caa",
0|app | "detail": "During secondary validation: While processing CAA for www.werkzaam.be: CAA record for werkzaam.be prevents issuance"
0|app | },
0|app | "token": "LJNL-PvXVRHrfG5bfF03NsU8KUiKnv0FLiXl6K5CctM",
0|app | "validationRecord": [
0|app | {
0|app | "url": "http://www.werkzaam.be/.well-known/acme-challenge/LJNL-PvXVRHrfG5bfF03NsU8KUiKnv0FLiXl6K5CctM",
0|app | "hostname": "www.werkzaam.be",
0|app | "port": "80",
0|app | "addressesResolved": [
0|app | ""
0|app | ],
0|app | "addressUsed": "
*"
0|app | }
0|app | ]
0|app | },
0|app | "domain": "www.werkzaam.be",
0|app | "status": "invalid",
0|app | "expires": "2025-02-17T12:45:18Z"
0|app | }
0|app | at Client.pollAuthz (file:///forward-domain/forward-domain/src/certnode/lib/client.js:332:23)
0|app | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|app | at async Client.generateCertificate (file:///forward-domain/forward-domain/src/certnode/lib/client.js:77:9)
0|app | at async file:///forward-domain/forward-domain/src/sni.js:76:35

@eltyBelgium
Copy link
Author

this is one of the errors:

app | at Client.pollAuthz (file:///forward-domain/forward-domain/src/certnode/lib/client.js:332:23) 0|app | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 0|app | at async Client.generateCertificate (file:///forward-domain/forward-domain/src/certnode/lib/client.js:77:9) 0|app | at async file:///forward-domain/forward-domain/src/sni.js:76:35 0|app | Error: pollAuthz() authorization is invalid: { 0|app | "challenge": { 0|app | "type": "http-01", 0|app | "url": "https://acme-staging-v02.api.letsencrypt.org/acme/chall/180089154/16014523314/XEimqw", 0|app | "status": "invalid", 0|app | "validated": "2025-02-10T12:45:19Z", 0|app | "error": { 0|app | "type": "urn:ietf:params:acme:error:caa", 0|app | "detail": "During secondary validation: While processing CAA for www.werkzaam.be: CAA record for werkzaam.be prevents issuance" 0|app | }, 0|app | "token": "LJNL-PvXVRHrfG5bfF03NsU8KUiKnv0FLiXl6K5CctM", 0|app | "validationRecord": [ 0|app | { 0|app | "url": "http://www.werkzaam.be/.well-known/acme-challenge/LJNL-PvXVRHrfG5bfF03NsU8KUiKnv0FLiXl6K5CctM", 0|app | "hostname": "www.werkzaam.be", 0|app | "port": "80", 0|app | "addressesResolved": [ 0|app | "172.211.161.18" 0|app | ], 0|app | "addressUsed": "172.211.161.18" 0|app | } 0|app | ] 0|app | }, 0|app | "domain": "www.werkzaam.be", 0|app | "status": "invalid", 0|app | "expires": "2025-02-17T12:45:18Z" 0|app | } 0|app | at Client.pollAuthz (file:///forward-domain/forward-domain/src/certnode/lib/client.js:332:23) 0|app | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 0|app | at async Client.generateCertificate (file:///forward-domain/forward-domain/src/certnode/lib/client.js:77:9) 0|app | at async file:///forward-domain/forward-domain/src/sni.js:76:35

this was a CAA record problem. But if i surf to https://domainA.be I got a invalid cert problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0