Skip to content

Commit

Permalink
Merge pull request #21920 from bew/fix-zscaler-cert-guide
Browse files Browse the repository at this point in the history
guides: Fix cert extension to be auto-added by update-ca-certificates
  • Loading branch information
dvdksn authored Jan 29, 2025
2 parents 7e6ba1e + 0f6df87 commit 4d82913
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/guides/zscaler/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ like this:

```dockerfile
FROM debian:bookworm
COPY zscaler-cert.pem /usr/local/share/ca-certificates/zscaler-cert.pem
COPY zscaler-root-ca.crt /usr/local/share/ca-certificates/zscaler-root-ca.crt
RUN apt-get update && \
apt-get install -y ca-certificates && \
update-ca-certificates
```

Here, `zscaler-cert.pem` is the root certificate, located at the root of the
Here, `zscaler-root-ca.crt` is the root certificate, located at the root of the
build context (often within the application's Git repository).

If you use an artifact repository, you can fetch the certificate directly using
Expand All @@ -100,7 +100,7 @@ the content digest of the certificate is correct.
```dockerfile
FROM debian:bookworm
ADD --checksum=sha256:24454f830cdb571e2c4ad15481119c43b3cafd48dd869a9b2945d1036d1dc68d \
https://artifacts.example/certs/zscaler-cert.pem /usr/local/share/ca-certificates/zscaler-cert.pem
https://artifacts.example/certs/zscaler-root-ca.crt /usr/local/share/ca-certificates/zscaler-root-ca.crt
RUN apt-get update && \
apt-get install -y ca-certificates && \
update-ca-certificates
Expand All @@ -123,7 +123,7 @@ RUN --mount=target=. cmake -B output/

FROM debian:bookworm-slim AS final
ADD --checksum=sha256:24454f830cdb571e2c4ad15481119c43b3cafd48dd869a9b2945d1036d1dc68d \
https://artifacts.example/certs/zscaler-cert.pem /usr/local/share/ca-certificates/zscaler-cert.pem
https://artifacts.example/certs/zscaler-root-ca.crt /usr/local/share/ca-certificates/zscaler-root-ca.crt
RUN apt-get update && \
apt-get install -y ca-certificates && \
update-ca-certificates
Expand Down

0 comments on commit 4d82913

Please sign in to comment.