-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: certificate-changed event handler #409
base: main
Are you sure you want to change the base?
Conversation
- Obtain or generate TLS certificate with the core helper "get-certificate". - Run the helper as a .service unit that start once when the session boots. - The unit starts before app services.
Replace the obsolete certificate-updated event handler with the new Core 3.6.0 event handler.
openssl req -nodes -newkey rsa:2048 \ | ||
-keyout server.key \ | ||
-out server.csr -new \ | ||
-subj "/C=IT/ST=Italy/L=Pesaro/O=Nethesis/OU=NethVoice/CN=${NETHVOICE_HOST}/subjectAltName=${CTI_HOST},${NETHVOICE_HOST}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: CTI_HOST is not defined
# SPDX-License-Identifier: GPL-3.0-or-later | ||
# | ||
|
||
systemctl --user -T try-reload-or-restart asterisk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: asterisk
service is not defined
|
||
systemctl --user -T try-reload-or-restart phonebook | ||
|
||
systemctl --user -T try-reload-or-restart nethcti-server |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: nethcti-server
is a web application that shouldn't use NETHVOICE_HOST name.
get-certificate
helper to obtain TLS certificates.get-certificate.service
unit to run obtain/generate the TLS certificate at boot.References:
See also https://github.com/NethServer/ns8-core/blob/feat-7004/docs/modules/certificates.md#tls-for-other-applications