Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ azure-mgmt-resource==24.0.0
azure-mgmt-subscription==3.1.1
bcrypt==5.0.*
boto3==1.42.*
certifi==2025.11.12
cryptography==46.0.*
Flask-Babel==4.0.*
Flask-Compress==1.*
Expand Down
11 changes: 8 additions & 3 deletions web/pgadmin/misc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

"""A blueprint module providing utility functions for the application."""

import certifi
from pgadmin.utils import driver
from flask import request, current_app
from flask_babel import gettext
Expand Down Expand Up @@ -371,18 +372,22 @@ def upgrade_check():
# Do not wait for more than 5 seconds.
# It stuck on rendering the browser.html, while working in the
# broken network.
if os.path.exists(config.CA_FILE) and sys.version_info >= (
if sys.version_info >= (
3, 13):
# Use SSL context for Python 3.13+
context = ssl.create_default_context(cafile=config.CA_FILE)
if os.path.exists(config.CA_FILE):
context = ssl.create_default_context(cafile=config.CA_FILE)
else:
context = ssl.create_default_context(certifi.where())

response = urlopen(url, data=data, timeout=5,
context=context)
elif os.path.exists(config.CA_FILE):
# Use cafile parameter for older versions
response = urlopen(url, data=data, timeout=5,
cafile=config.CA_FILE)
else:
response = urlopen(url, data, 5)
response = urlopen(url, data, 5, cafile=certifi.where())
current_app.logger.debug(
'Version check HTTP response code: %d' % response.getcode()
)
Expand Down
Loading