mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-17 16:34:44 -05:00
Fixed the SSL certificate issue while the CA file is not configured.
This commit is contained in:
@@ -378,7 +378,9 @@ def upgrade_check():
|
||||
if os.path.exists(config.CA_FILE):
|
||||
context = ssl.create_default_context(cafile=config.CA_FILE)
|
||||
else:
|
||||
context = ssl.create_default_context(certifi.where())
|
||||
context = ssl.create_default_context(
|
||||
cafile=certifi.where()
|
||||
)
|
||||
|
||||
response = urlopen(url, data=data, timeout=5,
|
||||
context=context)
|
||||
|
||||
Reference in New Issue
Block a user