bazelbuild/bazel

How to disable SSL certification check

Open

#25,814 opened on Apr 11, 2025

View on GitHub
 (0 comments) (1 reaction) (0 assignees)Java (4,465 forks)batch import
area-Windowshelp wantedteam-OSStype: support / not a bug (process)

Repository metrics

Stars
 (25,384 stars)
PR merge metrics
 (Avg merge 22d 20h) (77 merged PRs in 30d)

Description

I added --host_jvm_args="-Dcom.sun.net.ssl.checkRevocation=false", still got

Error downloading [https://github.com/bazelbuild/platforms/releases/download/0.0.9/platforms-0.0.9.tar.gz] to xxx/53xgocuc/external/platforms/temp6434624468252738285/platforms-0.0.9.tar.gz: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Please help!

my command bazel --host_jvm_args="-Dcom.sun.net.ssl.checkRevocation=false" build //:hello

bazel 7.4.1 windows 10

Contributor guide