Today I had a fight with AutoUpgrade to use at one of my clients. He uses a proxy. The autoupgrade was failing with:
oracle@clientsrv [client26] java -jar autoupgrade.jar -patch -config download-patches.cfg -mode download
AutoUpgrade Patching 26.7.2.261111 launched with default internal options
Processing config file ...
Loading AutoUpgrade Patching keystore
AutoUpgrade Patching keystore is loaded
There were conditions found preventing AutoUpgrade Patching from successfully running
*Downloading files
Download query failed
*unable to find valid certification path to requested target*
I kept getting this unable to find valid certification path to requested target.
I’ve looked at How to Fix Errors in AutoUpgrade Download Mode – Databases Are Fun from Daniel Overby Hansen, I tried to apply the solution at Autoupgrade Patching Fails To Download Patches With Error “Unable To Find Valid Certification Path” (Doc ID 3082396.1).
The debug session for me was the following:
- Check which java version and JAVA_HOME I was using
$ java -version
java version "11.0.31" 2026-04-21 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.31+9-LTS-165)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.31+9-LTS-165, mixed mode)
$ echo $JAVA_HOME
/u00/app/oracle/product/client/26.2/jdk
- Check that the hosts used by autoupgrade are reachable. The hosts come from the Daniel’s post, plus
updateadvisor.oracle.com, which turned up later in my tests:
for h in login-ext.identity.oraclecloud.com updates.oracle.com aru-akam.oracle.com updateadvisor.oracle.com; do
printf '%-40s' $h; curl -s -o /dev/null -m 10 -w '%{http_code}\n' "https://$h"
done
- See who signs each host’s certificate:
for h in login-ext.identity.oraclecloud.com updates.oracle.com aru-akam.oracle.com updateadvisor.oracle.com; do
printf '%-40s' $h; curl -sv -m 10 -o /dev/null https://$h 2>&1 | grep -E 'issuer:|SSL certificate verify'
done
This was the key step: login-ext... was signed by Zscaler, while the Oracle hosts were signed by DigiCert.
I needed to add the certificate of the Zscaler proxy to the trusted CAs. Here how to do it:
- Get the chain for the failing host, adding
</dev/nulland-proxyif direct access is blocked (openssl ignores http_proxy environment variable).
h=login-ext.identity.oraclecloud.com
openssl s_client -proxy proxy.client.ch:8600 -connect $h:443 -servername $h -showcerts </dev/null 2>/dev/null | awk '/BEGIN CERT/{c=""} {c=c $0 "\n"} /END CERT/{last=c} END{printf "%s", last}' > zscaler.crt
grep -c 'BEGIN CERT' zscaler.crt; openssl x509 -in zscaler.crt -noout -subject -issuer -enddate -fingerprint -sha256
- Import the Zscaler CA into the JDK truststore.
$JAVA_HOME/bin/keytool -importcert -noprompt -alias zscaler-ca -file zscaler.crt -storepass changeit -cacerts
However this was not needed.
The curl output for login-ext showed issuer: Zscaler... together with SSL certificate verify ok. curl validates against the OS Certificate Authority bundle, so the OS must already trust the Zscaler CA. Java doesn’t use the OS bundle, only its own cacerts. That mismatch explains why curl worked and Java didn’t. This was an inference from the output. One can confirm it directly with:
trust list | grep -i zscaler
So the solution is to inform Java that it should use the OS CA bundle. For that we do:
export JAVA_TOOL_OPTIONS="-Djavax.net.ssl.trustStore=/etc/pki/ca-trust/extracted/java/cacerts"
export http_proxy=http://proxy.client.ch:8600
export https_proxy=http://proxy.client.ch:8600
And then I can call the autoupgrade:
java -jar autoupgrade.jar -config download-patches.cfg -patch -mode download
And yet another error
Nothing to do with the previous problem, but for the record: during the configuration for the client, I used a common Oracle Support User from the client. This user was not used in the last few years, but it was still part of the Usergroups (meaning, it was migrated from old to the new portal, at least the group members).
However the autoupgrade was failing with:
2026-11-21 17:26:18.454 INFO [1] Unable to register with the Oracle Update Advisor service
Service response: UPD-02004 : UserId/Password/CSI combination may not be valid.
After some testing, I noticed that the user did not exist in the Oracle Support tenancy. So I just register the user again at Oracle and I did not even had to add it back to the Usergroups.
