<?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 Getting exception as 'peer not authenticated' while creating recurring billing in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-exception-as-peer-not-authenticated-while-creating/m-p/58587#M33211</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still getting peer not authenticated exception even after upgraded into &lt;SPAN&gt;TSL1.2&lt;/SPAN&gt;. I already posted a &lt;A title="Click Here to View the Post" href="https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-exception-as-peer-not-authenticated-while-creating/m-p/58357/highlight/false" target="_self"&gt;post&lt;/A&gt; on community. Below is the link.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-exception-as-peer-not-authenticated-while-creating/m-p/58357/highlight/false" target="_blank"&gt;https://community.developer.authorize.net/t5/Integration-and-Testing/Getting-exception-as-peer-not-authenticated-while-creating/m-p/58357/highlight/false&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They suggest below code&lt;/P&gt;&lt;P&gt;&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;&lt;P&gt;&amp;nbsp;But I am still getting exception.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could any one help me to solve the issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2017 12:48:40 GMT</pubDate>
    <dc:creator>davidarul</dc:creator>
    <dc:date>2017-06-26T12:48:40Z</dc:date>
    <item>
      <title>Getting exception as 'peer not authenticated' while creating recurring billing</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-exception-as-peer-not-authenticated-while-creating/m-p/58587#M33211</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still getting peer not authenticated exception even after upgraded into &lt;SPAN&gt;TSL1.2&lt;/SPAN&gt;. I already posted a &lt;A title="Click Here to View the Post" href="https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-exception-as-peer-not-authenticated-while-creating/m-p/58357/highlight/false" target="_self"&gt;post&lt;/A&gt; on community. Below is the link.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-exception-as-peer-not-authenticated-while-creating/m-p/58357/highlight/false" target="_blank"&gt;https://community.developer.authorize.net/t5/Integration-and-Testing/Getting-exception-as-peer-not-authenticated-while-creating/m-p/58357/highlight/false&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They suggest below code&lt;/P&gt;&lt;P&gt;&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;&lt;P&gt;&amp;nbsp;But I am still getting exception.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could any one help me to solve the issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 12:48:40 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-exception-as-peer-not-authenticated-while-creating/m-p/58587#M33211</guid>
      <dc:creator>davidarul</dc:creator>
      <dc:date>2017-06-26T12:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Getting exception as 'peer not authenticated' while creating recurring billing</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-exception-as-peer-not-authenticated-while-creating/m-p/58683#M33300</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21830"&gt;@davidarul&lt;/a&gt;Hello &lt;BR /&gt;&lt;BR /&gt;It's been a while since this was first posted. &amp;nbsp;Were you able to find a solution?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would recommend subscribing to this topic so that you'll be alerted via email if anyone from the community is able to respond with any comments. To subscribe, click Topic Options at the top of this thread and then select Subscribe. You'll then receive an email once anyone replies.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Richard&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 21:31:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-exception-as-peer-not-authenticated-while-creating/m-p/58683#M33300</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2017-07-05T21:31:11Z</dc:date>
    </item>
  </channel>
</rss>

