Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zscaler-cert

Zscaler's public certificate (also available as a DER binary file) for your application-specific trust store.

Docker and Zscaler

If you're using Docker in a project, you'll need to add this to your Dockerfile:

ADD https://raw.githubusercontent.com/cfpb/zscaler-cert/refs/heads/main/zscaler_root_ca.pem /usr/local/share/ca-certificates/zscaler_root_ca.crt
RUN update-ca-certificates

If your base image doesn't include certificate management tooling, you'll do something like:

ADD https://raw.githubusercontent.com/cfpb/zscaler-cert/refs/heads/main/zscaler_root_ca.pem /usr/local/share/ca-certificates/zscaler_root_ca.crt
RUN apk add --no-cache --no-check-certificate ca-certificates && update-ca-certificates

If npm is failing, you might have to:

ENV NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt

Here's how it looks in consumerfinance.gov's Dockerfile.

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 for npm and pip by doing the following:

mkdir -p ~/Documents/certs/
curl https://raw.githubusercontent.com/cfpb/zscaler-cert/refs/heads/main/ca_bundle_with_zscaler.pem -o ~/Documents/certs/ca_bundle_with_zscaler.pem
curl https://raw.githubusercontent.com/cfpb/zscaler-cert/refs/heads/main/zscaler_root_ca.pem -o ~/Documents/certs/zscaler_root_ca.pem
curl https://raw.githubusercontent.com/cfpb/zscaler-cert/refs/heads/main/zscaler.env >> ~/.zshenv
source ~/.zshenv

This assumes you use zsh and have a ~/.zshenv file. If you don't, put the environment variables wherever is appropriate.

What is ca_bundle_with_zscaler.pem?

I took Mozilla's CA certificate store and added the Zscaler root CA signature to the bottom of it. Some projects might want a full list of certificate authorities.

About

Just a li'l zscaler public key

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors