Skip to content
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

Senec changed to https #164

Closed
MaBernO opened this issue Aug 18, 2023 · 10 comments
Closed

Senec changed to https #164

MaBernO opened this issue Aug 18, 2023 · 10 comments
Assignees
Labels
awaiting user feedback Waiting for user feedback enhancement New feature or request
Milestone

Comments

@MaBernO
Copy link

MaBernO commented Aug 18, 2023

Since 17.8. i have no access with the standard port 80 to my senec V2.1
I noticed some software update from senec.
The web interface is now accessible via the https port (443).
Nothing else seems to have changed.

Can you support this variant in the adapter?

REVISION MCU: 3825

REVISION MCU-BL: 2307

REVISION NPU-REGS: 10

REVISION NPU-IMAGE: 2307

REVISION GUI: 2966

REVISION INV: 660

REVISION NSP: 243 / 243

@nobl
Copy link
Owner

nobl commented Aug 21, 2023

Currently preparing release 1.4.2.
This will have an option to switch to https in settings.

This is currently considered "experimental" because I have no ways to test it. So feedback is appreciated!

This change should not cause issues with systems not supporting https (yet).

@nobl nobl self-assigned this Aug 21, 2023
@nobl nobl added this to the 1.4.2 milestone Aug 21, 2023
@nobl nobl added the enhancement New feature or request label Aug 21, 2023
@MaBernO
Copy link
Author

MaBernO commented Aug 21, 2023

I tried it with 1.4.2 with enabled https option:

senec.0 | 2023-08-21 22:39:41.763 | error | Error: Error connecting to Senec (IP: https://192.168.178.247). Exiting! (unable to verify the first certificate). Try to toggle https-mode in settings and check FQDN of SENEC appliance.
-- | -- | --
senec.0 | 2023-08-21 22:39:41.761 | info | unable to verify the first certificate
senec.0 | 2023-08-21 22:39:41.005 | info | connecting to Senec: https://192.168.178.247/lala.cgi

@MaBernO
Copy link
Author

MaBernO commented Aug 21, 2023

seems to be a problem with senec's certificate.
Maybe the option NODE_TLS_REJECT_UNAUTHORIZED=0 needs to be passed.

@nobl
Copy link
Owner

nobl commented Aug 21, 2023

can you try to update from github?
I made some changes in main.js - hoping that works :)

Or just modify main.js like:
81cc427

@MaBernO
Copy link
Author

MaBernO commented Aug 21, 2023

same error again.
I added process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; in the adapter init (with 1.4.2) communication with senec was working.

@nobl
Copy link
Owner

nobl commented Aug 21, 2023

yeah - just that pretty much is "kill them all" :)
I would prefer solving that via user-agent settings

@MaBernO
Copy link
Author

MaBernO commented Aug 21, 2023

Ok, if you have another proposal i will try it out.

@nobl
Copy link
Owner

nobl commented Aug 21, 2023

Just pushed another update to github - while I cannot test with a senec on https I tried with another machine and it looks promising :)

@nobl nobl modified the milestones: 1.4.2, 1.4.3 Aug 21, 2023
@nobl nobl pinned this issue Aug 21, 2023
@nobl nobl added the awaiting user feedback Waiting for user feedback label Aug 21, 2023
@MaBernO
Copy link
Author

MaBernO commented Aug 22, 2023

1.4.3 is working with https.
Thank you very much.

@nobl
Copy link
Owner

nobl commented Aug 22, 2023

Thanks for reporting of course testing :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting user feedback Waiting for user feedback enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants