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

copy SSL certificates from NC instance to ExApp upon install/update action #448

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

Conversation

oleksandr-nc
Copy link
Contributor

This PR adds the updateCertificates method to automate SSL certificate updates in Docker containers.

It detects the container's OS, determines the correct certificate directory (e.g., /usr/local/share/ca-certificates for Debian), parses the Nextcloud certificate bundle, copies individual certificates into the container, and applies updates using OS-specific commands like update-ca-certificates.

Tested on Debian and Alpine.

@oleksandr-nc
Copy link
Contributor Author

the only thing that worries me is that we copy all the certificates from the bundle from the server, including the system ones.

as far as I know, this shouldn't break anything, and this PR won't be backported, so we have plenty of time for testing until Nextcloud 31 get released.

@oleksandr-nc oleksandr-nc force-pushed the feat/ssl-certificates-update branch from 7f7e394 to 1343bda Compare December 26, 2024 11:45
Signed-off-by: Oleksander Piskun <[email protected]>
@oleksandr-nc oleksandr-nc force-pushed the feat/ssl-certificates-update branch from 1343bda to 4d4c892 Compare December 26, 2024 11:51
@oleksandr-nc oleksandr-nc added the enhancement New feature or request label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants