Skip to content

Commit ebc835c

Browse files
oheger-boschsschuberth
authored andcommitted
fix(docker): Make importing custom certificates work
When custom certificates are passed to the `import_certificates.sh` script that are mounted into the container (which should be the default scenario), the import to the system certificates store does not happen because the `update-ca-certificates` script ignores symbolic links. To fix this, make sure that the custom certificate files are copied to "real" files. Signed-off-by: Oliver Heger <oliver.heger@bosch.com>
1 parent df02d27 commit ebc835c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/import_certificates.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ fi
5555

5656
# Also add the certificates to the system certificates, e.g. for curl to work.
5757
echo "Adding certificates to the system certificates..."
58-
cp -r "$FILE_PREFIX"* /usr/local/share/ca-certificates/
58+
cp -L -r "$FILE_PREFIX"* /usr/local/share/ca-certificates/
5959
update-ca-certificates

0 commit comments

Comments
 (0)