All GenieACS environment variables must be prefixed with GENIEACS_ . Please try with:
GENIEACS_CWMP_SSL_CERT=/opt/genieacs/cert.crt
GENIEACS_CWMP_SSL_KEY=/opt/genieacs/key.key
I have done the installation from the source code of genieacs 1.2 with nodejs 12 and modified the genieacs.env file as above to use SSL but it doesn’t work (without SSL lines all work fine):
[ERROR] Worked died
[ERROR] uncaught exception
Could it be from the nodejs version?
Any suggestions for help?
hi, hello, i have the same problem as you, have you solved it?
I used your configuration,
After restarting the genieacs server, /usr/bin/genieacs-cwmp is lost;
genieacs-cwmp cannot run,
Because in the environment variables, I only configure the SSL parameters of genieacs-cwmp;
GENIEACS_CWMP_SSL_CERT=/opt/genieacs/cert.crt
GENIEACS_CWMP_SSL_KEY=/opt/genieacs/key.key
When I remove GENIEACS_CWMP_SSL_CERT/ GENIEACS_CWMP_SSL_KEY;
genieacs-cwmp can start normally.
Can anyone help me check it?
Nothing can be seen in the genieacs log, use journalctl -e to check:
Hi, lavira;
First of all, thanks for your reply,
Secondly, I did not use openssl to generate a password, and used my own certificate and secret key;
Is there any problem?
What are the correct configuration and steps for SSL connection requests?
Are there any detailed instructions or documentation?
the error you received seems to be related to a invalid key … just to make sure your key is not encrypted, please run: openssl rsa -in /opt/genieacs/key.key -out /opt/genieacs/unencryptedKey.key
and after that check if the certificate and key match:
The hashed values from each command should be equal … If all is ok, replace the key in the env file and restart the process and see if it works. GENIEACS_CWMP_SSL_KEY=/opt/genieacs/unencryptedKey.key
Yes, I restart CWMP, and does CRT and key files necessarily have to be certificated by the trust certification authority?
Added more:
I generated the CRT and KEY again for self certificated and I still see the error when apply the “systemctl status genieacs-ui.service” which I change to ACS’s UI instead of CWMP.