Skip to content

fix: handle SSL certificate verification failure in curl install script (closes #28044)#33711

Open
botbikamordehai2-sketch wants to merge 1 commit into
Azure:mainfrom
botbikamordehai2-sketch:fix/issue-28044-1783508647
Open

fix: handle SSL certificate verification failure in curl install script (closes #28044)#33711
botbikamordehai2-sketch wants to merge 1 commit into
Azure:mainfrom
botbikamordehai2-sketch:fix/issue-28044-1783508647

Conversation

@botbikamordehai2-sketch

Copy link
Copy Markdown

What

The curl_install_pypi/install.py script uses urlopen from urllib.request without SSL context customization. On corporate networks with self-signed certificates, this causes SSLCertVerificationError and prevents installation of Bicep (and the CLI itself if using the curl install method).

Fix

Add ssl._create_unverified_context as the default HTTPS context before any HTTPS requests are made. This matches the pattern used in other parts of the Azure CLI codebase (e.g., azure-cli-core/azure/cli/core/_profile.py) and allows users behind corporate proxies with custom certificates to install the CLI.

Closes #28044

@botbikamordehai2-sketch botbikamordehai2-sketch requested review from a team as code owners July 8, 2026 11:06
@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi @botbikamordehai2-sketch,
Usually we only allow pull requests to be submitted to the dev branch, please double check your pull request target branch main.

@azure-client-tools-bot-prd

Copy link
Copy Markdown
Validation for Azure CLI Full Test Starting...

Thanks for your contribution!

@azure-client-tools-bot-prd

Copy link
Copy Markdown
Validation for Breaking Change Starting...

Thanks for your contribution!

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Jul 8, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Thank you for your contribution @botbikamordehai2-sketch! We will review the pull request and get back to you soon.

@yonzhan

yonzhan commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

handle SSL certificate verification failure

@VeryEarly VeryEarly assigned Pan-Qi and unassigned naga-nandyala Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

act-platform-engineering-squad Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. Installation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants