File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 9
9
10
10
# Check for gRPC certificates
11
11
if not (Path (Path .cwd ().absolute ().anchor ) / 'usr' / 'share' / 'grpc' / 'roots.pem' ).exists ():
12
- env_name = ' GRPC_DEFAULT_SSL_ROOTS_FILE_PATH'
12
+ env_name = " GRPC_DEFAULT_SSL_ROOTS_FILE_PATH"
13
13
if env_name not in os .environ or not Path (os .environ [env_name ]).exists ():
14
- tls_root_certs = Path (tempfile .gettempdir ()) / 'roots .pem'
14
+ tls_root_certs = Path (tempfile .gettempdir ()) / "isrgrootx1 .pem"
15
15
if not Path (tls_root_certs ).exists ():
16
- print ('Downloading gRPC certificates' )
17
16
ssl ._create_default_https_context = ssl ._create_unverified_context
18
- urllib .request .urlretrieve (' https://pki.google.com/roots .pem' , str (tls_root_certs ))
17
+ urllib .request .urlretrieve (" https://letsencrypt.org/certs/isrgrootx1 .pem" , str (tls_root_certs ))
19
18
os .environ [env_name ] = str (tls_root_certs )
20
19
21
20
client = flight .connect ('grpc+tls://flight.spiceai.io' )
You can’t perform that action at this time.
0 commit comments