Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ ENV NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt

Here's how it looks in consumerfinance.gov's [`Dockerfile`](https://github.com/cfpb/consumerfinance.gov/compare/ZsCaLeR).

If you're running a JAVA based application, like Jenkins, use keytool to import the zscaler certs

```
# Add Zscaler Root CA certificate and rebuild CA certificates
ADD https://raw.githubusercontent.com/cfpb/zscaler-cert/3982ebd9edf9de9267df8d1732ff5a6f88e38375/zscaler_root_ca.pem \
/usr/local/share/ca-certificates/zscaler-root-public.cert

RUN keytool -noprompt -importcert -alias zscaler -keystore "/opt/java/openjdk/lib/security/cacerts" -storepass changeit -file "/usr/local/share/ca-certificates/zscaler-root-public.cert"
```

Add the above to the Dockerfile to avoid cert errors when Jenkins installs plugins from "updates.jenkins.io"


## How to fix npm and pip SSL errors on a *nix machine

If npm is throwing `UNABLE_TO_GET_ISSUER_CERT_LOCALLY` or pip ain't working, download Zscaler's public key and define some [important environment variables](https://help.zscaler.com/zia/adding-custom-certificate-application-specific-trust-store) for npm and pip by doing the following:
Expand Down