Configure proxy settings
This topic describes how to configure a proxy server in Alibaba Cloud CLI to access and manage cloud services through the proxy.
Procedure
Alibaba Cloud CLI allows you to use a proxy server to access and manage cloud services by configuring environment variables. The following table describes the configuration. For more information about how to configure environment variables, see Configure environment variables in Linux, macOS, and Windows.
Use an HTTP proxy
|
Variable |
Value |
|
|
|
Use an HTTPS proxy
|
Variable |
Value |
|
The CLI reads |
|
Skip TLS certificate validation
If a corporate proxy uses a self-signed certificate for TLS interception, CLI returns a certificate validation error. You can use the --skip-secure-verify flag to skip certificate validation:
aliyun ecs describe-regions --skip-secure-verify
To persist this setting, run configure set:
aliyun configure set --skip-secure-verify
After the configuration is complete, you can run any API command to verify proxy connectivity.
Skipping TLS certificate validation reduces security. Use this option only in trusted internal networks. On public networks, this may expose your credentials.