Unable to add new token-based download URL in vCenter Lifecycle Manager when a proxy is configured
search cancel

Unable to add new token-based download URL in vCenter Lifecycle Manager when a proxy is configured

book

Article ID: 428366

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • When trying to save the download URL (e.g. https://dl.broadcom.com/<Token_ID>/PROD/COMP/ESX_HOST/main/<patch_source>.xml) with the new token, it fails with:
    The Download Source https://dl.broadcom.com/<Token_ID>/PROD/COMP/ESX_HOST/main/<patch_source>.xml is invalid or cannot be reached now"
    Example screenshot:
  • When testing the network connectivity from the vCenter to dl.broadcom.com the following result is shown:
    # curl -vv https://dl.broadcom.com
    ..
    [0-x] * Uses proxy env variable https_proxy == 'https://<proxy_IP>:<proxy_port>/'
    [0-0] * [HTTPS-CONNECT] created with 1 ALPNs -> 0
    [0-0] * [HTTPS-CONNECT] added
    [0-0] * [HTTPS-CONNECT] connect, init
    [0-0] *   Trying <proxy_IP>:3128...
    [0-0] * [HTTPS-CONNECT] connect -> 0, done=0
    [0-0] * [HTTPS-CONNECT] adjust_pollset -> 1 socks
    [0-0] * ALPN: curl offers http/1.1
    [0-0] * TLSv1.3 (OUT), TLS handshake, Client hello (1):
    [0-0] *  CAfile: /etc/pki/tls/certs/ca-bundle.crt
    [0-0] *  CApath: none
    [0-0] * [HTTPS-CONNECT] connect -> 0, done=0
    [0-0] * [HTTPS-CONNECT] adjust_pollset -> 1 socks
    [0-0] * TLS connect error: error:0A00010B:SSL routines::wrong version number
    [0-0] * [HTTPS-CONNECT] connect, all failed

Environment

VMware VCenter Server 8.0.x

Cause

The error TLS connect error: error:0A00010B:SSL routines::wrong version number indicates that the proxy is expecting HTTP traffic instead of the HTTPS connection attempt sent by vCenter.

This happens because of a limitation in the proxy component in the vCenter Server Appliance.
Depending on the configuration of the proxy, it might be using the same port to accept both HTTP and HTTPS traffic.
If this is the case, the same URL needs to be configured in /etc/sysconfig/proxy for HTTPS_PROXY as is set for HTTP_PROXY, including the protocol. Both should be set as http://<proxy_FQDN_or_IP>:<proxy_port>.

Resolution

Note: Not all possible configuration settings are exposed via VAMI UI, therefore changes like this need to be manually applied via editing the /etc/sysconfig/proxy file.

To resolve this issue, take the following steps:

  • Open an SSH connection to the vCenter Server Appliance (VCSA) and login with the root user.
  • Create a backup copy of the file /etc/sysconfig/proxy:
    # cp /etc/sysconfig/proxy /etc/sysconfig/proxy_428366
  • Edit the file with the VI or VIM editor.
  • Find the HTTP_PROXY and HTTPS_PROXY lines and compare the TCP ports set in both lines
  • If both options have the same port set, make sure that both are configured to use the HTTP protocol:
    # Example: HTTP_PROXY="http://example.com:3128/"
    HTTP_PROXY="http://proxy.example.com:8080"
    # Example: HTTPS_PROXY="https://example.com:3128/"
    HTTPS_PROXY="http://proxy.example.com:8080"
  • Once the configuration has been corrected, save and exit the editor (:wq!) and restart the vCenter Services:
    # service-control --stop --all && service-control --start --all

Should the issue persist despite the configuration being correct, contact Broadcom support for further assistance.

Additional Information

See How to configure proxy settings for vCenter Server for more information regarding proxy configuration in VCSA.