Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Latest Safari browsers will not work with custom certificates #498

Closed
bukovjanmic opened this issue Feb 2, 2022 · 0 comments
Closed

Latest Safari browsers will not work with custom certificates #498

bukovjanmic opened this issue Feb 2, 2022 · 0 comments
Labels
Milestone

Comments

@bukovjanmic
Copy link

In entrypoint.sh, certificates are copied:

if env | grep -q ROOT_CA_; then
for e in $(env | grep ROOT_CA_ | sed -e 's/=.*$//'); do
certname=$(echo -n $e | sed -e 's/ROOT_CA_//')
echo ${!e} | base64 -d >/tmp/ca-certificates/${certname}.crt
done
update-ca-certificates --localcertsdir /tmp/ca-certificates
fi

However, /tmp/ca-certificates does not exist in the image, so the operation fails:

/entrypoint.sh: line 44: /tmp/ca-certificates/CEZ_SYSTEM.crt: No such file or directory
/entrypoint.sh: line 44: /tmp/ca-certificates/CEZ_CA.crt: No such file or directory
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
PORT=5900

It should be fixed by either adding the directory into the image or mkdir this directory in entrypoint.

@vania-pooh vania-pooh added the bug label Feb 3, 2022
@vania-pooh vania-pooh added this to the 7.4.0 milestone Feb 3, 2022
vania-pooh added a commit that referenced this issue Feb 3, 2022
Creating /tmp/ca-certificates when needed for safari (fixes #498)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants