For a similar issue, see "cannot authenticate SSL certificate for proxy" in Content Library for vCenter HTTPs Proxy Support
A general system error occurred:Transfer failed:Invalid response code: 503, note that HTTP/s proxy is configured for the transfer.Unrecognized SSL message, plaintext connection?, note that HTTP/s proxy is configured for the transfer[YYYY-MM-DDTHH:MM:SS] info vpxd[#####] [Originator@#### sub=Default opID=#######-##] [VpxLRO] -- ERROR task-###### -- <VMNAME> -- ResourcePool.ImportVAppLRO: vim.fault.OvfImportFailed:
--> Result:
--> (vim.fault.OvfImportFailed) {
--> faultCause = (vmodl.fault.SystemError) {
--> faultCause = (vmodl.MethodFault) null,
--> faultMessage = (vmodl.LocalizableMessage) [
--> (vmodl.LocalizableMessage) {
--> key = "com.vmware.ovfs.ovfs-main.ovfs.transfer_failed",
--> arg = (vmodl.KeyAnyValue) [
--> (vmodl.KeyAnyValue) {
--> key = "0",
--> value = "Invalid response code: 403, note that HTTP/s proxy is configured for the transfer"
--> message = "Transfer failed: Invalid response code: 403, note that HTTP/s proxy is configured for the transfer."
--> reason = ""
--> msg = "Transfer failed: Invalid response code: 403, note that HTTP/s proxy is configured for the transfer."
--> faultMessage = <unset>/var/log/vmware/content-library/cls.log ovf.transfer_failed
Server not trusted: certificate_unknown(46), note that HTTP/S proxy is configured for the transfer
Transfer failed: Invalid response code: 403, note that HTTP/s proxy is configured for the transfer.
Transfer failed: Server not trusted, certificate unknownInvalid response code: 403 is a response from the PROXY server indicating that the resource you are attempting to reach is not allowed access.Workaround:
Use one of the below methods (Note that the following is case sensitive):
HTTPS_PROXY="https://proxy.example.com:3128/"to
HTTPS_PROXY="http://proxy.example.com:3128/"
Reboot the VCSA if you are on a version prior to 7.0 U1. Otherwise, restart services with the command:
# service-control --stop --all && service-control --start --all
Add the hosts to the NO_PROXY config to bypass the proxy:
Connect to the vCenter Server with a SSH session
Modify the /etc/sysconfig/proxy file and add the ESXi host FQDN's or IP's to the following line, separated by a comma followed by a space character.
NO_PROXY="localhost, 127.0.0.1, <hostname>.example.com"Attempt the OVF deployment from the content library and the vSphere Client.
Note:
Content library in vCenter 7.0U1c and newer versions include support to specify a CIDR notation (1.2.3.4/24)/netmask notation (1.2.3.4/255.255.255.0) or a wildcard with a leading full stop (".") as in .*.vmware.com.
Please note that wildcard entries must start with a full stop.
For File based Backup and Restore you need to explicitly mention FQDN/IP of backup server. For more information, see No_Proxy requirement for vCenter File based Backup and Restore
For example:
NO_PROXY="localhost, 127.0.0.1, .*.example.com, 10.0.0.1/24"
Using a wildcard proxy has its limitations:
This issue is being checked by Diagnostics for VMware Cloud Foundation.
The check is as follows: