<?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: SDK &amp;amp; TLS1.2 in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SDK-amp-TLS1-2/m-p/58159#M32829</link>
    <description>&lt;P&gt;You could&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;try {
SSLContext ctx = SSLContext.getInstance("TLSv1.2");
ctx.init(null, null, null);
SSLContext.setDefault(ctx);
} catch (Exception e) {
System.out.println(e.getMessage());
}&lt;/PRE&gt;&lt;P&gt;Or&lt;/P&gt;&lt;PRE&gt;final SSLContext ctx = SSLContext.getInstance("TLSv1.2");
ctx.init(null,null, new java.security.SecureRandom());
final SSLSocketFactory socketFactory = ctx.getSocketFactory();
HttpsURLConnection.setDefaultSSLSocketFactory(socketFactory);&lt;/PRE&gt;</description>
    <pubDate>Mon, 22 May 2017 12:20:23 GMT</pubDate>
    <dc:creator>NexusSoftware</dc:creator>
    <dc:date>2017-05-22T12:20:23Z</dc:date>
    <item>
      <title>SDK &amp; TLS1.2</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SDK-amp-TLS1-2/m-p/58154#M32824</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The suggested fix didn't solve the TLS issue&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Environment information:&lt;BR /&gt;Google App Engine ( GAE )&lt;BR /&gt;Java 7&lt;BR /&gt;&lt;BR /&gt;We set the default TLS to 1.2 ( following documentation &lt;A href="https://blogs.oracle.com/java-platform-group/diagnosing-tls,-ssl,-and-https" target="_blank"&gt;https://blogs.oracle.com/java-platform-group/diagnosing-tls,-ssl,-and-https&lt;/A&gt; ) but still we get the same issue, we passed this by &lt;STRONG&gt;&lt;EM&gt;only&lt;/EM&gt;&lt;/STRONG&gt; updating/fixing&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;your&lt;/STRONG&gt;&lt;/EM&gt; SDK to support TLS 1.2 , and here is some detail:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;Extend DefaultHttpClient so we can set the enabled SSL protocols in method createClientConnectionManager.java and set the enabled SSL protocols&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLSocket.html#setEnabledProtocols%28java.lang.String" target="_blank"&gt;http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLSocket.html#setEnabledProtocols(java.lang.String&lt;/A&gt;[])&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;Extend HttpCallTask.java so we can use the extended DefaultHttpClient&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;Extend HttpUtility.java so we can use the extended HttpCallTask&lt;BR /&gt;&lt;BR /&gt;Please advice,&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 22 May 2017 08:48:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SDK-amp-TLS1-2/m-p/58154#M32824</guid>
      <dc:creator>sa</dc:creator>
      <dc:date>2017-05-22T08:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: SDK &amp; TLS1.2</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SDK-amp-TLS1-2/m-p/58159#M32829</link>
      <description>&lt;P&gt;You could&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;try {
SSLContext ctx = SSLContext.getInstance("TLSv1.2");
ctx.init(null, null, null);
SSLContext.setDefault(ctx);
} catch (Exception e) {
System.out.println(e.getMessage());
}&lt;/PRE&gt;&lt;P&gt;Or&lt;/P&gt;&lt;PRE&gt;final SSLContext ctx = SSLContext.getInstance("TLSv1.2");
ctx.init(null,null, new java.security.SecureRandom());
final SSLSocketFactory socketFactory = ctx.getSocketFactory();
HttpsURLConnection.setDefaultSSLSocketFactory(socketFactory);&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 May 2017 12:20:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SDK-amp-TLS1-2/m-p/58159#M32829</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-05-22T12:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: SDK &amp; TLS1.2</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SDK-amp-TLS1-2/m-p/58223#M32890</link>
      <description>&lt;P&gt;That would be a solution if we don't use GAE..&lt;BR /&gt;With GAE the methods setFactory() and&amp;nbsp;&lt;SPAN&gt;setDefaultSSLContext() are not allowed.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 08:07:21 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SDK-amp-TLS1-2/m-p/58223#M32890</guid>
      <dc:creator>sa</dc:creator>
      <dc:date>2017-05-25T08:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: SDK &amp; TLS1.2</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SDK-amp-TLS1-2/m-p/58224#M32891</link>
      <description>&lt;P&gt;On GAE you could try something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;exec "${RUN_JAVA}" "${SCRIPT_NAME}" \
    -Ddeployment.security.TLSv1.1=false -Ddeployment.security.TLSv1.2=true -ea -cp "${JAR_FILE}" \
    com.google.appengine.tools.KickStart \
    com.google.appengine.tools.development.DevAppServerMain "$@"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 08:47:01 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SDK-amp-TLS1-2/m-p/58224#M32891</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-05-25T08:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: SDK &amp; TLS1.2</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SDK-amp-TLS1-2/m-p/58225#M32892</link>
      <description>&lt;P&gt;You are basically saying to set the system properties&lt;/P&gt;&lt;PRE&gt;Ddeployment.security.TLSv1.2 to true&lt;/PRE&gt;&lt;P&gt;And&lt;/P&gt;&lt;PRE&gt;deployment.security.TLSv1.1 to false&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;That doesn't fix the issue &lt;SPAN&gt;unfortunately..&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 09:27:25 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SDK-amp-TLS1-2/m-p/58225#M32892</guid>
      <dc:creator>sa</dc:creator>
      <dc:date>2017-05-25T09:27:25Z</dc:date>
    </item>
  </channel>
</rss>

