<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to disable portal SSL checks completely? in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-disable-portal-ssl-checks-completely/m-p/1203643#M2617</link>
    <description>&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;Extremely sorry, but the server isn't available publicly. It's hosted on a private network.&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, I changed the certificate assigned to tomcat instance that was hosting the web adapter to properly match the hostname and now I'm not getting this particular error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Aug 2022 09:29:15 GMT</pubDate>
    <dc:creator>VineetMenon</dc:creator>
    <dc:date>2022-08-17T09:29:15Z</dc:date>
    <item>
      <title>How to disable portal SSL checks completely?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-disable-portal-ssl-checks-completely/m-p/1201222#M2615</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an enterprise server (portal + server) running at my premises with a self signed certificate. I'm trying to get arcgis java runtime to publish a feature to a feature layer. I'm having a hard time getting the token authentication to work for me.&lt;/P&gt;&lt;P&gt;The following is the code for setting up an AuthenticationHandler.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;AuthenticationManager.setAuthenticationChallengeHandler((AuthenticationChallenge arg0) -&amp;gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; logger.error("auth challenge {}, {}", arg0, arg0.getType());&lt;BR /&gt;&amp;nbsp; &amp;nbsp; return new AuthenticationChallengeResponse(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AuthenticationChallengeResponse.Action.CONTINUE_WITH_CREDENTIAL,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;new UserCredential("&amp;lt;username&amp;gt;", "&amp;lt;password&amp;gt;"));&lt;BR /&gt;&amp;nbsp; &amp;nbsp;});&lt;BR /&gt;AuthenticationManager.setTrustAllSigners(true);&lt;BR /&gt;AuthenticationManager.setSelfSignedCertificateListener((arg0, arg1) -&amp;gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; return new SelfSignedResponse(true, true);&lt;BR /&gt;});&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Even after being so permissive, I'm getting an exception "javax.net.ssl.SSLPeerUnverifiedException: Certificate for &amp;lt;gisportal1.&amp;lt;domain&amp;gt;.in&amp;gt; doesn't match common name of the certificate subject: portal1".&lt;/P&gt;&lt;P&gt;Evidently, there's a mismatch in the certificate CN and the url. Can I skip this check (for now) and let the DevOps deal with it later?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 12:17:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-disable-portal-ssl-checks-completely/m-p/1201222#M2615</guid>
      <dc:creator>VineetMenon</dc:creator>
      <dc:date>2022-08-10T12:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable portal SSL checks completely?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-disable-portal-ssl-checks-completely/m-p/1203639#M2616</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;It's hard to comment on this without trying it out.&amp;nbsp; Is there any way you can share access to your server and the credentials.&amp;nbsp; I appreciate you won't want to share this on a public forum, but there is a private message system here you can use to share these with me.&lt;/P&gt;&lt;P&gt;If it's not possible, we'll try to make suggestions.&lt;/P&gt;&lt;P&gt;Can you also tell me what version of the SDK you are using?&amp;nbsp; This is a key piece of information.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 09:27:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-disable-portal-ssl-checks-completely/m-p/1203639#M2616</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2022-08-17T09:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable portal SSL checks completely?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-disable-portal-ssl-checks-completely/m-p/1203643#M2617</link>
      <description>&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;Extremely sorry, but the server isn't available publicly. It's hosted on a private network.&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, I changed the certificate assigned to tomcat instance that was hosting the web adapter to properly match the hostname and now I'm not getting this particular error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 09:29:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-disable-portal-ssl-checks-completely/m-p/1203643#M2617</guid>
      <dc:creator>VineetMenon</dc:creator>
      <dc:date>2022-08-17T09:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable portal SSL checks completely?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-disable-portal-ssl-checks-completely/m-p/1204088#M2618</link>
      <description>&lt;P&gt;Excellent - glad you've got a working solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 07:59:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-disable-portal-ssl-checks-completely/m-p/1204088#M2618</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2022-08-18T07:59:08Z</dc:date>
    </item>
  </channel>
</rss>

