-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polish SSLError #11093
Polish SSLError #11093
Conversation
@@ -161,6 +161,12 @@ def login(cmd, username=None, password=None, service_principal=None, tenant=None | |||
# pylint: disable=line-too-long | |||
"More details are available at https://github.com/AzureAD/microsoft-authentication-library-for-python/wiki/Username-Password-Authentication") | |||
raise CLIError(err) | |||
except requests.exceptions.SSLError as err: | |||
raise CLIError('Certificate verification failed. Please typically happens when using Azure CLI behind a proxy ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo Please typically happens
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch. Fixed in new commit.
@jiasli, Why is |
Polish
SSLError
reported in issues #11069, #11068, #10921, #10860, #10272 ...Changed 3 places:
src/azure-cli/azure/cli/command_modules/profile/custom.py
when logging insrc/azure-cli-core/azure/cli/core/adal_authentication.py
when retrieving tokenssrc/azure-cli-core/azure/cli/core/util.py
when making REST requestsTo test, replace
<virtual env>\Lib\site-packages\certifi\cacert.pem
with some self-signed certificate like Fiddler's:az login
now fails withIf logged in,
az vm list
fails with similar message.This checklist is used to make sure that common guidelines for a pull request are followed.
The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).
I adhere to the Command Guidelines.