fix: handle SSL certificate verification failure in curl install script (closes #28044)#33711
Open
botbikamordehai2-sketch wants to merge 1 commit into
Open
Conversation
|
Hi @botbikamordehai2-sketch, |
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
microsoft-github-policy-service
Bot
requested review from
jsntcy,
wangzelin007 and
yonzhan
July 8, 2026 11:07
Contributor
|
Thank you for your contribution @botbikamordehai2-sketch! We will review the pull request and get back to you soon. |
Collaborator
|
handle SSL certificate verification failure |
Pan-Qi
approved these changes
Jul 10, 2026
Contributor
|
@jsntcy @wangzelin007 @yonzhan @naga-nandyala , please also review/approve the PR as a protected branch |
naga-nandyala
previously approved these changes
Jul 15, 2026
wangzelin007
previously approved these changes
Jul 15, 2026
Pan-Qi
requested changes
Jul 15, 2026
Pan-Qi
left a comment
Contributor
There was a problem hiding this comment.
Please change your PR target to dev
wangzelin007
dismissed stale reviews from naga-nandyala and themself
July 15, 2026 00:59
The base branch was changed.
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The
curl_install_pypi/install.pyscript usesurlopenfromurllib.requestwithout SSL context customization. On corporate networks with self-signed certificates, this causesSSLCertVerificationErrorand prevents installation of Bicep (and the CLI itself if using the curl install method).Fix
Add
ssl._create_unverified_contextas 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