<?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 tSetKeystore + tRest - HTTPS hostname wrong: should be &amp;lt;servername&amp;gt; in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tSetKeystore-tRest-HTTPS-hostname-wrong-should-be-lt-servername/m-p/2288503#M61985</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;We are doing a rest call to a server with SSL in a job we originally built in 5.4 but it's now in 6.4.&amp;nbsp; The SSL certificate only has&amp;nbsp;one name in it (an FQDN accessible externally), and we need to access the server via another name.&amp;nbsp; We can't change the certificate and need to accept this certificate.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;We use tSetKeyStore to load the keys that we are using - and then a tRest component to make the request.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-04-19 at 1.37.35 PM.png" style="width: 261px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LwoQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152314i1E5327AEB12636A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LwoQ.png" alt="0683p000009LwoQ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Note: "Check server identity" is not checked.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-04-19 at 5.28.04 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lwas.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146636iBBC2C1002D5D030F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lwas.png" alt="0683p000009Lwas.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-04-19 at 5.31.17 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LwtT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141702iD34A10495DCE86A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LwtT.png" alt="0683p000009LwtT.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Exception in component tREST_1 (test)&lt;BR /&gt;com.sun.jersey.api.client.ClientHandlerException: java.io.IOException: HTTPS hostname wrong: should be &amp;lt;servername&amp;gt;&lt;BR /&gt;at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:131)&lt;BR /&gt;at com.sun.jersey.api.client.Client.handle(Client.java:616)&lt;BR /&gt;at com.sun.jersey.api.client.WebResource.handle(WebResource.java:559)&lt;BR /&gt;...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If I check the "&lt;SPAN&gt;Check server identity" it seems to work successfully.&amp;nbsp; &amp;nbsp;Any clue here why "check server identity" = true would fail when the servername is different?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 08:22:33 GMT</pubDate>
    <dc:creator>rod</dc:creator>
    <dc:date>2024-11-16T08:22:33Z</dc:date>
    <item>
      <title>tSetKeystore + tRest - HTTPS hostname wrong: should be &lt;servername&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSetKeystore-tRest-HTTPS-hostname-wrong-should-be-lt-servername/m-p/2288503#M61985</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;We are doing a rest call to a server with SSL in a job we originally built in 5.4 but it's now in 6.4.&amp;nbsp; The SSL certificate only has&amp;nbsp;one name in it (an FQDN accessible externally), and we need to access the server via another name.&amp;nbsp; We can't change the certificate and need to accept this certificate.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;We use tSetKeyStore to load the keys that we are using - and then a tRest component to make the request.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-04-19 at 1.37.35 PM.png" style="width: 261px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LwoQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152314i1E5327AEB12636A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LwoQ.png" alt="0683p000009LwoQ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Note: "Check server identity" is not checked.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-04-19 at 5.28.04 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lwas.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146636iBBC2C1002D5D030F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lwas.png" alt="0683p000009Lwas.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-04-19 at 5.31.17 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LwtT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141702iD34A10495DCE86A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LwtT.png" alt="0683p000009LwtT.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Exception in component tREST_1 (test)&lt;BR /&gt;com.sun.jersey.api.client.ClientHandlerException: java.io.IOException: HTTPS hostname wrong: should be &amp;lt;servername&amp;gt;&lt;BR /&gt;at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:131)&lt;BR /&gt;at com.sun.jersey.api.client.Client.handle(Client.java:616)&lt;BR /&gt;at com.sun.jersey.api.client.WebResource.handle(WebResource.java:559)&lt;BR /&gt;...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If I check the "&lt;SPAN&gt;Check server identity" it seems to work successfully.&amp;nbsp; &amp;nbsp;Any clue here why "check server identity" = true would fail when the servername is different?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:22:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSetKeystore-tRest-HTTPS-hostname-wrong-should-be-lt-servername/m-p/2288503#M61985</guid>
      <dc:creator>rod</dc:creator>
      <dc:date>2024-11-16T08:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: tSetKeystore + tRest - HTTPS hostname wrong: should be &lt;servername&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSetKeystore-tRest-HTTPS-hostname-wrong-should-be-lt-servername/m-p/2288504#M61986</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;It looks like an issue with the DefaultHostnameVerifier.&lt;/P&gt; 
&lt;P&gt;In tSetKeystore component, the "&lt;SPAN class="ph uicontrol"&gt;Check server identity"&lt;/SPAN&gt; option is used to make the Job verify the match between the hostname of the URL and the hostname of the server. If they mismatch, the verification mechanism asks whether this connection should be allowed.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;DIV id="tSetKeystore" class="nested0"&gt;
 &amp;nbsp;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 May 2018 09:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSetKeystore-tRest-HTTPS-hostname-wrong-should-be-lt-servername/m-p/2288504#M61986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-04T09:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: tSetKeystore + tRest - HTTPS hostname wrong: should be &lt;servername&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSetKeystore-tRest-HTTPS-hostname-wrong-should-be-lt-servername/m-p/2288505#M61987</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at this again it doesn't seem to be the DefaultHostnameVerifier - it seems between 5.6 &amp;amp; 6.4/6.5 the behaviour reversed.&amp;nbsp; It used to add this code when the checkbox was not selected, now it adds it when it&amp;nbsp;is selected (which is by default).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm going to change mine to use "Check server identity" when I don't want it to, but&amp;nbsp;do you think this might&amp;nbsp;change back in the future?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;System.setProperty("java.protocol.handler.pkgs",
						"com.sun.net.ssl.internal.www.protocol");
				javax.net.ssl.HttpsURLConnection
						.setDefaultHostnameVerifier(new javax.net.ssl.HostnameVerifier() {
							public boolean verify(String hostName,
									javax.net.ssl.SSLSession session) {
								return true;
							}
						});&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 16:55:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSetKeystore-tRest-HTTPS-hostname-wrong-should-be-lt-servername/m-p/2288505#M61987</guid>
      <dc:creator>rod</dc:creator>
      <dc:date>2018-06-11T16:55:31Z</dc:date>
    </item>
  </channel>
</rss>

