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

feat: certificate-changed event handler #409

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

DavidePrincipi
Copy link
Member

  • Remove the dh.pem generation: it seems not used.
  • Upgrade to Core 3.6.0: use get-certificate helper to obtain TLS certificates.
  • Define 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

- 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}"
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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.

@DavidePrincipi DavidePrincipi marked this pull request as ready for review March 20, 2025 16:04
@DavidePrincipi DavidePrincipi requested review from Amygos and Stell0 March 20, 2025 16:09
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

Successfully merging this pull request may close these issues.

2 participants