{"id":1191,"date":"2026-11-21T20:07:38","date_gmt":"2026-11-21T19:07:38","guid":{"rendered":"https:\/\/anjo.pt\/keyword-oracle\/?p=1191"},"modified":"2026-11-21T20:21:27","modified_gmt":"2026-11-21T19:21:27","slug":"autoupgrade-proxy-and-certificates-errors","status":"publish","type":"post","link":"https:\/\/anjo.pt\/keyword-oracle\/2026\/11\/21\/autoupgrade-proxy-and-certificates-errors\/","title":{"rendered":"Autoupgrade, proxy and certificates errors"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Today I had a fight with AutoUpgrade to use at one of my clients. He uses a proxy. The autoupgrade was failing with:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\noracle@clientsrv &#x5B;client26] java -jar autoupgrade.jar -patch -config download-patches.cfg -mode download\nAutoUpgrade Patching 26.7.2.261111 launched with default internal options\nProcessing config file ...\nLoading AutoUpgrade Patching keystore\nAutoUpgrade Patching keystore is loaded\n\nThere were conditions found preventing AutoUpgrade Patching from successfully running\n\n*Downloading files\nDownload query failed\n*unable to find valid certification path to requested target*\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">I kept getting this <code>unable to find valid certification path to requested target<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;ve looked at <a href=\"https:\/\/dohdatabase.com\/2025\/11\/11\/au-fix-download-mode\/\" target=\"_blank\" rel=\"noopener\">How to Fix Errors in AutoUpgrade Download Mode \u2013 Databases Are Fun<\/a> from Daniel Overby Hansen, I tried to apply the solution at \u00a0<a href=\"https:\/\/support.oracle.com\/epmos\/faces\/DocumentDisplay?id=3082396.1\" target=\"_blank\" rel=\"noopener\">Autoupgrade Patching Fails To Download Patches With Error \u201cUnable To Find Valid Certification Path\u201d (Doc ID 3082396.1)<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The debug session for me was the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Check which java version and JAVA_HOME I was using<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ java -version\njava version &quot;11.0.31&quot; 2026-04-21 LTS\nJava(TM) SE Runtime Environment 18.9 (build 11.0.31+9-LTS-165)\nJava HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.31+9-LTS-165, mixed mode)\n\n$ echo $JAVA_HOME\n\/u00\/app\/oracle\/product\/client\/26.2\/jdk\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Check that the hosts used by autoupgrade are reachable. The hosts come from the Daniel&#8217;s post, plus <code>updateadvisor.oracle.com<\/code>, which turned up later in my tests:<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nfor h in login-ext.identity.oraclecloud.com updates.oracle.com aru-akam.oracle.com updateadvisor.oracle.com; do \n  printf &#039;%-40s&#039; $h; curl -s -o \/dev\/null -m 10 -w &#039;%{http_code}\\n&#039; &quot;https:\/\/$h&quot;\ndone\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>See who signs each host&#8217;s certificate:<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nfor h in login-ext.identity.oraclecloud.com updates.oracle.com aru-akam.oracle.com updateadvisor.oracle.com;  do \n  printf &#039;%-40s&#039; $h; curl -sv -m 10 -o \/dev\/null https:\/\/$h 2&gt;&amp;amp;1 | grep -E &#039;issuer:|SSL certificate verify&#039;\ndone\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">This was the key step: <code>login-ext...<\/code> was signed by <strong>Zscaler<\/strong>, while the Oracle hosts were signed by DigiCert.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I needed to add the certificate of the Zscaler proxy to the trusted CAs. Here how to do it:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Get the chain for the failing host, adding <code>&lt;\/dev\/null<\/code> and <code>-proxy<\/code> if direct access is blocked (openssl ignores http_proxy environment variable).<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nh=login-ext.identity.oraclecloud.com\nopenssl s_client -proxy proxy.client.ch:8600 -connect $h:443 -servername $h -showcerts &amp;lt;\/dev\/null 2&gt;\/dev\/null | awk &#039;\/BEGIN CERT\/{c=&quot;&quot;} {c=c $0 &quot;\\n&quot;} \/END CERT\/{last=c} END{printf &quot;%s&quot;, last}&#039; &gt; zscaler.crt\n\ngrep -c &#039;BEGIN CERT&#039; zscaler.crt; openssl x509 -in zscaler.crt -noout -subject -issuer -enddate -fingerprint -sha256\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Import the Zscaler CA into the JDK truststore.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$JAVA_HOME\/bin\/keytool -importcert -noprompt -alias zscaler-ca -file zscaler.crt -storepass changeit -cacerts\n<\/pre><\/div>\n\n\n<h4 class=\"wp-block-heading\">However this was not needed. <\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>curl<\/code> output for <code>login-ext<\/code> showed <code>issuer: Zscaler...<\/code> together with <code>SSL certificate verify ok<\/code>. <code>curl<\/code> validates against the OS Certificate Authority bundle, so the OS must already trust the Zscaler CA. Java doesn&#8217;t use the OS bundle, only its own <code>cacerts<\/code>. That mismatch explains why <code>curl<\/code> worked and Java didn&#8217;t. This was an inference from the output. One can confirm it directly with:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ntrust list | grep -i zscaler\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">So the solution is to inform Java that it should use the OS CA bundle. For that we do:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nexport JAVA_TOOL_OPTIONS=&quot;-Djavax.net.ssl.trustStore=\/etc\/pki\/ca-trust\/extracted\/java\/cacerts&quot;\nexport http_proxy=http:\/\/proxy.client.ch:8600\nexport https_proxy=http:\/\/proxy.client.ch:8600\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">And then I can call the autoupgrade:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\njava -jar autoupgrade.jar -config download-patches.cfg -patch -mode download\n<\/pre><\/div>\n\n\n<h4 class=\"wp-block-heading\">And yet another error<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">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).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However the autoupgrade was failing with:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n2026-11-21 17:26:18.454 INFO &#x5B;1] Unable to register with the Oracle Update Advisor service\n  Service response: UPD-02004 : UserId\/Password\/CSI combination may not be valid.\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I had a fight with AutoUpgrade to use at one of my clients. He uses a proxy. The autoupgrade was failing with: I kept getting this unable to find valid certification path to requested target. I&#8217;ve looked at How to Fix Errors in AutoUpgrade Download Mode \u2013 Databases Are Fun from Daniel Overby Hansen, [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[92,6,18],"tags":[],"class_list":["post-1191","post","type-post","status-publish","format-standard","category-autoupgrade","category-oracle","category-patchset-update","czr-hentry"],"_links":{"self":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts\/1191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/comments?post=1191"}],"version-history":[{"count":5,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts\/1191\/revisions"}],"predecessor-version":[{"id":1199,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts\/1191\/revisions\/1199"}],"wp:attachment":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/media?parent=1191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/categories?post=1191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/tags?post=1191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}