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

Device status shows Online in devices summary but return offline on summon/configuration #22

Open
yamangit opened this issue Mar 30, 2024 · 1 comment

Comments

@yamangit
Copy link

yamangit commented Mar 30, 2024

I have tried to disable TLS verification, data is injected but it will show device offline while trying to configure. This is the command i have used.

ubuntu@ubuntu:~/genieacs-sim$ NODE_TLS_REJECT_UNAUTHORIZED=0 ./genieacs-sim -u https://192.168.63.4:7547/
Simulator 000000 started
Simulator 000000 listening for connection requests on http://192.168.63.4:49841/
(node:48028) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use node --trace-warnings ... to show where the warning was created)

And this is the genieacs.env file

ubuntu@ubuntu:~/genieacs-sim$ sudo cat /opt/genieacs/genieacs.env
GENIEACS_CWMP_ACCESS_LOG_FILE=/var/log/genieacs/genieacs-cwmp-access.log
GENIEACS_NBI_ACCESS_LOG_FILE=/var/log/genieacs/genieacs-nbi-access.log
GENIEACS_FS_ACCESS_LOG_FILE=/var/log/genieacs/genieacs-fs-access.log
GENIEACS_UI_ACCESS_LOG_FILE=/var/log/genieacs/genieacs-ui-access.log
GENIEACS_DEBUG_FILE=/var/log/genieacs/genieacs-debug.yaml
NODE_OPTIONS=--enable-source-maps
GENIEACS_EXT_DIR=/opt/genieacs/ext
GENIEACS_UI_JWT_SECRET=7b6cd18ac4981d192fdd60284e3e7c5960b5a8d00df226fe69a9a7b1f2f063f4fd397c9f2b5528751f07711592473db26c5adb796a6f0a54ce7c68e093e91d37bfc4ee0d9daad2b9f334a3932f8387dd9946c528137840c83817a0bb1af8b699cdb3a5712ec8affc4bdc34ae9147f3bf8786c6c152cf193d26911db566a4e304
GENIEACS_NBI_SSL_KEY=/opt/genieacs/ssl/genieacs-nbi.key
GENIEACS_NBI_SSL_CERT=/opt/genieacs/ssl/genieacs-nbi.crt
GENIEACS_CWMP_SSL_KEY=/opt/genieacs/ssl/genieacs-cwmp.key
GENIEACS_CWMP_SSL_CERT=/opt/genieacs/ssl/genieacs-cwmp.crt
GENIEACS_FS_SSL_KEY=/opt/genieacs/ssl/genieacs-fs.key
GENIEACS_FS_SSL_CERT=/opt/genieacs/ssl/genieacs-fs.crt
GENIEACS_UI_SSL_KEY=/opt/genieacs/ssl/genieacs-ui.key
GENIEACS_UI_SSL_CERT=/opt/genieacs/ssl/genieacs-ui.crt
GENIEACS_MONGODB_CONNECTION_URL=mongodb://genieacs:[email protected]:27017/genieacs?tls=true&tlsCertificateKeyFile=/opt/genieacs/ssl/mongodb-client.pem&tlsCAFile=/opt/genieacs/ssl/mongodb-server-ca.pem

summon

cert1
cert2

@vagkaefer
Copy link

vagkaefer commented Sep 16, 2024

You have to change the environment variable before calling genieacs-sim:

NODE_TLS_REJECT_UNAUTHORIZED=0 genieacs-sim -u https://192.168.63.4:7547/

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