<?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 TLS1.2 issue with java application in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/TLS1-2-issue-with-java-application/m-p/61902#M36301</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our site has stopped working from yesterday (02/28/18) and is giving the following error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root cause&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well i have make sure that the machine has TLS1.2 . But still the java application is throwing exception and we are not able to charge the credit cards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using the following code for connection to Authorize.net in java file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;post_url = new URL(&lt;BR /&gt;"&lt;A href="https://secure2.authorize.net/gateway/transact.dll" target="_blank"&gt;https://secure2.authorize.net/gateway/transact.dll&lt;/A&gt;");&lt;BR /&gt;String login = this.getAccountingDefaultService().getPropertyValue(&lt;BR /&gt;"authorizeLoginId", "");&lt;BR /&gt;String txKey = this.getAccountingDefaultService().getPropertyValue(&lt;BR /&gt;"authorizeTransKey", "");&lt;BR /&gt;post_values.put("x_login", login);&lt;BR /&gt;post_values.put("x_tran_key", txKey);&lt;BR /&gt;}&lt;BR /&gt;post_values.put("x_version", "3.1");&lt;BR /&gt;post_values.put("x_delim_data", "TRUE");&lt;BR /&gt;post_values.put("x_delim_char", "|");&lt;BR /&gt;post_values.put("x_relay_response", "FALSE");&lt;BR /&gt;post_values.put("x_type", "AUTH_CAPTURE");&lt;BR /&gt;post_values.put("x_method", "CC");&lt;BR /&gt;post_values.put("x_description", "Payment");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So any help , how to solve this issue will be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nadeem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Mar 2018 08:28:47 GMT</pubDate>
    <dc:creator>nadeemj</dc:creator>
    <dc:date>2018-03-01T08:28:47Z</dc:date>
    <item>
      <title>TLS1.2 issue with java application</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/TLS1-2-issue-with-java-application/m-p/61902#M36301</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our site has stopped working from yesterday (02/28/18) and is giving the following error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root cause&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well i have make sure that the machine has TLS1.2 . But still the java application is throwing exception and we are not able to charge the credit cards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using the following code for connection to Authorize.net in java file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;post_url = new URL(&lt;BR /&gt;"&lt;A href="https://secure2.authorize.net/gateway/transact.dll" target="_blank"&gt;https://secure2.authorize.net/gateway/transact.dll&lt;/A&gt;");&lt;BR /&gt;String login = this.getAccountingDefaultService().getPropertyValue(&lt;BR /&gt;"authorizeLoginId", "");&lt;BR /&gt;String txKey = this.getAccountingDefaultService().getPropertyValue(&lt;BR /&gt;"authorizeTransKey", "");&lt;BR /&gt;post_values.put("x_login", login);&lt;BR /&gt;post_values.put("x_tran_key", txKey);&lt;BR /&gt;}&lt;BR /&gt;post_values.put("x_version", "3.1");&lt;BR /&gt;post_values.put("x_delim_data", "TRUE");&lt;BR /&gt;post_values.put("x_delim_char", "|");&lt;BR /&gt;post_values.put("x_relay_response", "FALSE");&lt;BR /&gt;post_values.put("x_type", "AUTH_CAPTURE");&lt;BR /&gt;post_values.put("x_method", "CC");&lt;BR /&gt;post_values.put("x_description", "Payment");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So any help , how to solve this issue will be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nadeem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 08:28:47 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/TLS1-2-issue-with-java-application/m-p/61902#M36301</guid>
      <dc:creator>nadeemj</dc:creator>
      <dc:date>2018-03-01T08:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: TLS1.2 issue with java application</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/TLS1-2-issue-with-java-application/m-p/61905#M36304</link>
      <description>&lt;P&gt;For Java 7: download jar from below link and add to {JAVA_HOME}/jre/lib/security&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html" rel="noreferrer" target="_blank"&gt;http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For Java 8: download jar from below link and add to {JAVA_HOME}/jre/lib/security&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html" rel="noreferrer" target="_blank"&gt;http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 10:55:13 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/TLS1-2-issue-with-java-application/m-p/61905#M36304</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2018-03-01T10:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: TLS1.2 issue with java application</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/TLS1-2-issue-with-java-application/m-p/61912#M36311</link>
      <description>&lt;P&gt;So I tried this for JAVA7 but again same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
	sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
	sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
	sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1943)
	sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1059)
	sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1294)
	sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1321)
	sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1305)
	sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:515)
	sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
	sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1090)
	sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)
	com.netmx.netmemexweb.service.transactions.impl.AuthorizeCreditCardServiceImpl.processTransaction(AuthorizeCreditCardServiceImpl.java:120)
	com.netmx.netmemexweb.web.MeetingRegistrationFormAction.processCreditCard(MeetingRegistrationFormAction.java:1537)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:601)
	org.springframework.webflow.action.DispatchMethodInvoker.invoke(DispatchMethodInvoker.java:98)
	org.springframework.webflow.action.MultiAction.doExecute(MultiAction.java:123)
	org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:188)
	org.springframework.webflow.execution.AnnotatedAction.execute(AnnotatedAction.java:145)
	org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:51)
	org.springframework.webflow.action.EvaluateAction.doExecute(EvaluateAction.java:77)
	org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:188)
	org.springframework.webflow.execution.AnnotatedAction.execute(AnnotatedAction.java:145)
	org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:51)
	org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:101)
	org.springframework.webflow.engine.State.enter(State.java:194)
	org.springframework.webflow.engine.Transition.execute(Transition.java:227)
	org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:391)
	org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214)
	org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:119)
	org.springframework.webflow.engine.Flow.handleEvent(Flow.java:555)
	org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:386)
	org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210)
	org.springframework.webflow.engine.ViewState.handleEvent(ViewState.java:230)
	org.springframework.webflow.engine.ViewState.resume(ViewState.java:196)
	org.springframework.webflow.engine.Flow.resume(Flow.java:545)
	org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:259)
	org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:169)
	org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:183)
	org.springframework.webflow.mvc.servlet.FlowController.handleRequest(FlowController.java:174)
	org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:774)
	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
	org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)
	com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343)
	org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
	org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:119)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:188)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:109)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149)
	org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
	org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
	org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;What would you suggest next?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 14:52:35 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/TLS1-2-issue-with-java-application/m-p/61912#M36311</guid>
      <dc:creator>nadeemj</dc:creator>
      <dc:date>2018-03-01T14:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: TLS1.2 issue with java application</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/TLS1-2-issue-with-java-application/m-p/61916#M36315</link>
      <description>&lt;P&gt;We are having the same issue with Java 7; we use Tomcat as the application server. We have done the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a) Applied the jar files from the&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html" target="_blank"&gt;http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;b) Set the java options&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Dhttps.protocols=TLSv1.2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;which worked for other services that are now on TLSv1.2 only&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;c) Also did&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;SSLContext &lt;SPAN class="s1"&gt;sslContext&lt;/SPAN&gt; = SSLContext.getInstance(&lt;SPAN class="s2"&gt;"TLSv1.2"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;sslContext&lt;/SPAN&gt;.init(&lt;SPAN class="s3"&gt;null&lt;/SPAN&gt;, &lt;SPAN class="s3"&gt;null&lt;/SPAN&gt;, &lt;SPAN class="s3"&gt;null&lt;/SPAN&gt;);&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;SSLContext.setDefault(&lt;SPAN class="s1"&gt;sslContext&lt;/SPAN&gt;);&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;System.setProperty(&lt;/SPAN&gt;"https.protocols"&lt;SPAN class="s1"&gt;, &lt;/SPAN&gt;"TLSv1.2"&lt;SPAN class="s1"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;But still not able to connect. Same error with the Handshake.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:06:41 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/TLS1-2-issue-with-java-application/m-p/61916#M36315</guid>
      <dc:creator>optimantra</dc:creator>
      <dc:date>2018-03-01T15:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: TLS1.2 issue with java application</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/TLS1-2-issue-with-java-application/m-p/61922#M36321</link>
      <description>&lt;P&gt;We changed to JDK8 and that seems to have done the trick!!!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:41:50 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/TLS1-2-issue-with-java-application/m-p/61922#M36321</guid>
      <dc:creator>sfgbpotts1595</dc:creator>
      <dc:date>2018-03-01T15:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: TLS1.2 issue with java application</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/TLS1-2-issue-with-java-application/m-p/61934#M36333</link>
      <description>&lt;P&gt;Yes, it works with JDK 8; but that requires some more involved due diligence.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any one else has any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 17:05:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/TLS1-2-issue-with-java-application/m-p/61934#M36333</guid>
      <dc:creator>optimantra</dc:creator>
      <dc:date>2018-03-01T17:05:17Z</dc:date>
    </item>
  </channel>
</rss>

