Skip to content

Commit 8353742

Browse files
committed
Bump up proxy_ssl_verify_depth from 2 to 3, to handle intermediate certificates
1 parent 5b8bf25 commit 8353742

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

entrypoint.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,9 @@ if [[ "a${VERIFY_SSL}" == "atrue" ]]; then
281281
# We'll accept any cert signed by a CA trusted by Mozilla (ca-certificates-bundle in alpine)
282282
proxy_ssl_verify on;
283283
proxy_ssl_trusted_certificate /etc/ssl/certs/ca-certificates.crt;
284-
proxy_ssl_verify_depth 2;
284+
# docker.io has changed their certificate chain to include another intermediate certificate,
285+
# original value of 2 is not enough, bump up depth to 3.
286+
proxy_ssl_verify_depth 3;
285287
EOD
286288
echo "Upstream SSL certificate verification enabled."
287289
else

0 commit comments

Comments
 (0)