This content originally appeared on DEV Community and was authored by Raul Jonatan
Error using gem
gem install asciidoctor-pdf
ERROR: SSL verification error at depth 2: unable to get local issuer certificate (20)
ERROR: You must add /......../=Zscaler Root CA/emailAddress=support@zscaler.com to your local trusted store
ERROR: SSL verification error at depth 2: unable to get local issuer certificate (20)
ERROR: You must add /......../=Zscaler Root CA/emailAddress=support@zscaler.com to your local trusted store
ERROR: SSL verification error at depth 2: unable to get local issuer certificate (20)
ERROR: You must add /......../=Zscaler Root CA/emailAddress=support@zscaler.com to your local trusted store
ERROR: Could not find a valid gem 'asciidoctor-pdf' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 peeraddr=151.101.1.227:443 state=error: certificate verify failed (unable to get local issuer certificate) (https://rubygems.org/specs.4.8.gz)
ERROR: SSL verification error at depth 2: unable to get local issuer certificate (20)
ERROR: You must add /......../=Zscaler Root CA/emailAddress=support@zscaler.com to your local trusted store
ERROR: SSL verification error at depth 2: unable to get local issuer certificate (20)
ERROR: You must add /......../=Zscaler Root CA/emailAddress=support@zscaler.com to your local trusted store
Steps for solve
Download cerfiticate from zscaler
- Get Zscaler Certified visiting https://www.zscaler.com/ got security
- download certified
- save
- Copy the exported .crt file and place it in a directory accessible from WSL, such as your user home. in this case
zscaler.crt
file was download on home folder of user
julnarot@artanis:~$ cd
julnarot@artanis:~$
julnarot@artanis:~$ ls
develop oradiag_julnarot scripts zscaler.crt
- Add the certificate to WSL trusted certificates
julnarot@artanis:~$ sudo cp zscaler.crt /usr/local/share/ca-certificates/zscaler.crt
[sudo] password for julnarot:
julnarot@artanis:~$ sudo update-ca-certificates
Updating certificates in /etc/ssl/certs...
rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL
1 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
- Now try install some dependency with
gem
julnarot@artanis:~$ gem install asciidoctor-pdf
Fetching ttfunk-1.7.0.gem
...
Fetching concurrent-ruby-1.3.4.gem
Fetching asciidoctor-2.0.23.gem
Successfully installed ttfunk-1.7.0
Successfully installed polyglot-0.3.5
...
Successfully installed asciidoctor-pdf-2.3.19
Parsing documentation for ttfunk-1.7.0
Installing ri documentation for ttfunk-1.7.0
...
Done installing documentation for ttfunk, polyglot, treetop, pdf-core, prawn, ruby-rc4, hashery, Ascii85, afm, pdf-reader, prawn-templates, prawn-table, public_suffix, addressable, css_parser, prawn-svg, prawn-icon, concurrent-ruby, asciidoctor, asciidoctor-pdf after 8 seconds
20 gems installed
This content originally appeared on DEV Community and was authored by Raul Jonatan
Print
Share
Comment
Cite
Upload
Translate
Updates
There are no updates yet.
Click the Upload button above to add an update.

APA
MLA
Raul Jonatan | Sciencx (2024-10-31T00:36:09+00:00) SSL verification error at depth 2 – Zscaler | WSL. Retrieved from https://www.scien.cx/2024/10/31/ssl-verification-error-at-depth-2-zscaler-wsl/
" » SSL verification error at depth 2 – Zscaler | WSL." Raul Jonatan | Sciencx - Thursday October 31, 2024, https://www.scien.cx/2024/10/31/ssl-verification-error-at-depth-2-zscaler-wsl/
HARVARDRaul Jonatan | Sciencx Thursday October 31, 2024 » SSL verification error at depth 2 – Zscaler | WSL., viewed ,<https://www.scien.cx/2024/10/31/ssl-verification-error-at-depth-2-zscaler-wsl/>
VANCOUVERRaul Jonatan | Sciencx - » SSL verification error at depth 2 – Zscaler | WSL. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/10/31/ssl-verification-error-at-depth-2-zscaler-wsl/
CHICAGO" » SSL verification error at depth 2 – Zscaler | WSL." Raul Jonatan | Sciencx - Accessed . https://www.scien.cx/2024/10/31/ssl-verification-error-at-depth-2-zscaler-wsl/
IEEE" » SSL verification error at depth 2 – Zscaler | WSL." Raul Jonatan | Sciencx [Online]. Available: https://www.scien.cx/2024/10/31/ssl-verification-error-at-depth-2-zscaler-wsl/. [Accessed: ]
rf:citation » SSL verification error at depth 2 – Zscaler | WSL | Raul Jonatan | Sciencx | https://www.scien.cx/2024/10/31/ssl-verification-error-at-depth-2-zscaler-wsl/ |
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.