TRUSTED_CACERTS_DIR should also make occ trust additional CA certs in start.sh for nextcloud container #6239
-
Steps to reproduce
Expected behaviorNextcloud server start normally. Actual behaviorWhen doing manual install with custom CA certificates (needed by my custom https proxy server), the start script of nextcloud might fail when running some occ commands, e.g.:
Possible fix maybe add 'php occ security:certificates:import' command in Containers/nextcloud/start.sh: # Trust additional Cacerts, if the user provided $TRUSTED_CACERTS_DIR
if [ -n "$TRUSTED_CACERTS_DIR" ]; then
echo "User required to trust additional CA certificates, running 'update-ca-certificates.'"
update-ca-certificates
php /var/www/html/occ security:certificates:import /etc/ssl/certs/ca-certificates.crt
# or copy certs directly to occ certificate dir
# cp $TRUSTED_CACERTS_DIR/* $NEXTCLOUD_DATA_DIR/files_external/uploads
fi Other informationHost OSDebian 12 Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, we could add this but it will not solve the interoperability of the containers itself. This feature was only intended for LDAPS to work correctly out of the box. |
Beta Was this translation helpful? Give feedback.
-
I've made this a bit more explicit now with d3ac48f |
Beta Was this translation helpful? Give feedback.
Hi, we could add this but it will not solve the interoperability of the containers itself. This feature was only intended for LDAPS to work correctly out of the box.
See https://github.com/nextcloud/all-in-one?tab=readme-ov-file#are-self-signed-certificates-supported-for-nextcloud