Skip to content

Commit 71920c2

Browse files
committed
Fixed the SSL certificate issue while the CA file is not configured.
1 parent d30fd5d commit 71920c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/pgadmin/misc/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,9 @@ def upgrade_check():
378378
if os.path.exists(config.CA_FILE):
379379
context = ssl.create_default_context(cafile=config.CA_FILE)
380380
else:
381-
context = ssl.create_default_context(certifi.where())
381+
context = ssl.create_default_context(
382+
cafile=certifi.where()
383+
)
382384

383385
response = urlopen(url, data=data, timeout=5,
384386
context=context)

0 commit comments

Comments
 (0)