<?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: Could not create SSL/TLS secure channel in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Could-not-create-SSL-TLS-secure-channel/m-p/79267#M49849</link>
    <description>&lt;P&gt;The error is generic and there are many reasons why the SSL/TLS negotiation may fail. ServicePointManager.SecurityProtocol property selects the version of the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocol to use for new connections; existing &lt;A href="http://net-informations.com/faq/net/interview-questions.htm" target="_self"&gt;c#&lt;/A&gt; connections aren't changed. Make sure the ServicePointManager settings are made before the HttpWebRequest is created, else it will not work. Also, you have to enable other security protocol versions to resolve this issue:&lt;BR /&gt;&lt;BR /&gt;ServicePointManager.Expect100Continue = true;&lt;BR /&gt;ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12&lt;BR /&gt;SecurityProtocolType.Tls&lt;BR /&gt;SecurityProtocolType.Tls11&lt;BR /&gt;SecurityProtocolType.Ssl3;&lt;BR /&gt;&lt;BR /&gt;//createing HttpWebRequest after ServicePointManager settings&lt;/P&gt;&lt;P&gt;HttpWebRequest request = (HttpWebRequest)WebRequest.Create("&lt;A href="https://google.com/api/" target="_blank"&gt;https://google.com/api/&lt;/A&gt;")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you create HttpWebRequest before the ServicePointManager settings it will fail and shows the error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Oct 2021 06:03:21 GMT</pubDate>
    <dc:creator>creigmalta</dc:creator>
    <dc:date>2021-10-18T06:03:21Z</dc:date>
    <item>
      <title>Could not create SSL/TLS secure channel</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Could-not-create-SSL-TLS-secure-channel/m-p/63016#M37223</link>
      <description>&lt;P&gt;We are running identical code in our test and production environments.&lt;/P&gt;&lt;P&gt;In production, there is no problem.&lt;/P&gt;&lt;P&gt;In test, after years of having no problems, we are now seeing this error message:&lt;/P&gt;&lt;P&gt;"System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We just noticed this today, when testing something unrelated, so we can't say how long it has been a problem in the test environment, but certainly no more than a few months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand from tech support that Authorize.Net updated certificates recently, but it has had no impact on our production environment, which calls into the same URL, using identical code:&amp;nbsp;Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;https://secure.authorize.net/gateway/transact.dll&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have gone so far as to import cypher registry settings from the production server to the test server, and disable all of the options except&amp;nbsp;TLS 1.2, yet still we get this error (again, only on our test server).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are at a loss as to how we can address this, and are very concerned that we might eventually face the same problem in our production environment. Can anyone help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If useful, our C# code, in relevant part:&lt;/P&gt;&lt;P&gt;Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;private&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;static&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;string&lt;/SPAN&gt;&amp;nbsp;url&amp;nbsp;=&amp;nbsp;&lt;SPAN&gt;"https://secure.authorize.net/gateway/transact.dll&amp;nbsp;"&lt;/SPAN&gt;;
 
 
		&lt;SPAN&gt;public&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;static&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;AuthorizeResponse&lt;/SPAN&gt;&amp;nbsp;SendRequest(&lt;SPAN&gt;AuthorizeRequest&lt;/SPAN&gt;&amp;nbsp;transaction)
		{
			&lt;SPAN&gt;string&lt;/SPAN&gt;&amp;nbsp;strPost&amp;nbsp;=&amp;nbsp;transaction.ToString();
 
			&lt;SPAN&gt;StreamWriter&lt;/SPAN&gt;&amp;nbsp;myWriter&amp;nbsp;=&amp;nbsp;&lt;SPAN&gt;null&lt;/SPAN&gt;;
 
			&lt;SPAN&gt;HttpWebRequest&lt;/SPAN&gt;&amp;nbsp;objRequest&amp;nbsp;=&amp;nbsp;(&lt;SPAN&gt;HttpWebRequest&lt;/SPAN&gt;)&lt;SPAN&gt;WebRequest&lt;/SPAN&gt;.Create(url);
			objRequest.AuthenticationLevel&amp;nbsp;=&amp;nbsp;System.Net.Security.&lt;SPAN&gt;AuthenticationLevel&lt;/SPAN&gt;.MutualAuthRequired;
			objRequest.Method&amp;nbsp;=&amp;nbsp;&lt;SPAN&gt;"POST"&lt;/SPAN&gt;;
			objRequest.ContentLength&amp;nbsp;=&amp;nbsp;strPost.Length;
			objRequest.ContentType&amp;nbsp;=&amp;nbsp;&lt;SPAN&gt;"application/x-www-form-urlencoded"&lt;/SPAN&gt;;
 
			&lt;SPAN&gt;try&lt;/SPAN&gt;
			{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myWriter&amp;nbsp;=&amp;nbsp;&lt;SPAN&gt;new&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;StreamWriter&lt;/SPAN&gt;(objRequest.GetRequestStream(),&amp;nbsp;&lt;SPAN&gt;Encoding&lt;/SPAN&gt;.Default);
				myWriter.Write(strPost);
			}
			&lt;SPAN&gt;catch&lt;/SPAN&gt;&amp;nbsp;(&lt;SPAN&gt;Exception&lt;/SPAN&gt;&amp;nbsp;e)
			{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;throw&lt;/SPAN&gt;&amp;nbsp;e;	
			}
			&lt;SPAN&gt;finally&lt;/SPAN&gt;
			{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;if&lt;/SPAN&gt;&amp;nbsp;(myWriter&amp;nbsp;!=&amp;nbsp;&lt;SPAN&gt;null&lt;/SPAN&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myWriter.Flush();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myWriter.Close();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
			}
 
			&lt;SPAN&gt;string&lt;/SPAN&gt;&amp;nbsp;result&amp;nbsp;=&amp;nbsp;&lt;SPAN&gt;string&lt;/SPAN&gt;.Empty;
 
			&lt;SPAN&gt;HttpWebResponse&lt;/SPAN&gt;&amp;nbsp;objResponse&amp;nbsp;=&amp;nbsp;(&lt;SPAN&gt;HttpWebResponse&lt;/SPAN&gt;)objRequest.GetResponse();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 20:11:05 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Could-not-create-SSL-TLS-secure-channel/m-p/63016#M37223</guid>
      <dc:creator>jsnyder</dc:creator>
      <dc:date>2018-05-09T20:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Could not create SSL/TLS secure channel</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Could-not-create-SSL-TLS-secure-channel/m-p/63019#M37226</link>
      <description>&lt;P&gt;I am having the same issue as of today (5/9/2018) in two different accounts &lt;STRONG&gt;BUT, both are our production accounts&lt;/STRONG&gt;.&amp;nbsp; The last time I had issues was in Feb when the TLS upgrade happened.&amp;nbsp; After 2 hours on the phone with a person that didn't help much, I was given to a supervisor who mentioned upgrading the .NET drivers.&amp;nbsp; So, I went to nuget and upgraded the driver....everything started working again...and has since.&amp;nbsp; I checked the .NET drivers on nuget &lt;U&gt;today&lt;/U&gt; and they haven't been upgraded/updated since November 2017.&amp;nbsp; My guess is that they made some changes earlier this month, and somebody forgot to upgrade/update the .NET drivers in nuget.&amp;nbsp; (I know they updated the PHP SDK, because when I called for help today I was directed there.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody else having SSL secure channel connection issues?&amp;nbsp; We are effectively out of business until this gets resolved.&amp;nbsp; Running any type of volume of transactions manually through the Authorize.Net portal is anything but practical.&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 00:52:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Could-not-create-SSL-TLS-secure-channel/m-p/63019#M37226</guid>
      <dc:creator>jeffdxdy</dc:creator>
      <dc:date>2018-05-10T00:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Could not create SSL/TLS secure channel</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Could-not-create-SSL-TLS-secure-channel/m-p/63052#M37251</link>
      <description>&lt;P&gt;Had two stressful weeks trying to solve my issue with Authorize.net.&amp;nbsp; My shopping cart worked perfectly via their Sandbox, but not when live thru my website.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Final solution:&amp;nbsp; make sure your site's URL's are all www or not www (new API.&amp;nbsp; That was the first problem. Second problem (that probably set the it in action), was that i had just loaded an htacess file on the site that rewrite all pages to be https.&amp;nbsp; Previously only the shopping cart checkout was https and the rest of the site was http.&amp;nbsp; That rewrite was the major problem.&amp;nbsp; Fixed these two items and all it well!&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 14:39:34 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Could-not-create-SSL-TLS-secure-channel/m-p/63052#M37251</guid>
      <dc:creator>Sprovost</dc:creator>
      <dc:date>2018-05-14T14:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Could not create SSL/TLS secure channel</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Could-not-create-SSL-TLS-secure-channel/m-p/63080#M37278</link>
      <description>&lt;P&gt;What&amp;nbsp; resolved the issue for us was to add the following 3 lines of code before creating the HttpWebRequest object:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Snippet&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;const&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;SslProtocols&lt;/SPAN&gt;&amp;nbsp;_Tls12&amp;nbsp;=&amp;nbsp;(&lt;SPAN&gt;SslProtocols&lt;/SPAN&gt;)0x00000C00;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;const&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;SecurityProtocolType&lt;/SPAN&gt;&amp;nbsp;Tls12&amp;nbsp;=&amp;nbsp;(&lt;SPAN&gt;SecurityProtocolType&lt;/SPAN&gt;)_Tls12;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;ServicePointManager&lt;/SPAN&gt;.SecurityProtocol&amp;nbsp;=&amp;nbsp;Tls12;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 May 2018 15:21:21 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Could-not-create-SSL-TLS-secure-channel/m-p/63080#M37278</guid>
      <dc:creator>jsnyder</dc:creator>
      <dc:date>2018-05-17T15:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Could not create SSL/TLS secure channel</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Could-not-create-SSL-TLS-secure-channel/m-p/64879#M38667</link>
      <description>&lt;P&gt;We had issues related to our https .NET application (F5 BIGIP Load balanced) where it used to break intermittently for 1 hour window. and then started working again by itself after an hour&amp;nbsp;The event logs showed "Schannel Error - The TLS protocol defined fatal alert code is 40,&amp;nbsp;while the application logs showed the error "HttpRequestException: The buffers supplied to a function was too small ". The issue was due to what is mentioned in the F5 article&amp;nbsp;&lt;A href="https://support.f5.com/csp/article/K40424522" target="_blank"&gt;https://support.f5.com/csp/article/K40424522&lt;/A&gt; and was resolved when we disabled the EDH cypher on the impacted application VIP.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 14:08:05 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Could-not-create-SSL-TLS-secure-channel/m-p/64879#M38667</guid>
      <dc:creator>nick_jags</dc:creator>
      <dc:date>2018-10-26T14:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Could not create SSL/TLS secure channel</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Could-not-create-SSL-TLS-secure-channel/m-p/79267#M49849</link>
      <description>&lt;P&gt;The error is generic and there are many reasons why the SSL/TLS negotiation may fail. ServicePointManager.SecurityProtocol property selects the version of the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocol to use for new connections; existing &lt;A href="http://net-informations.com/faq/net/interview-questions.htm" target="_self"&gt;c#&lt;/A&gt; connections aren't changed. Make sure the ServicePointManager settings are made before the HttpWebRequest is created, else it will not work. Also, you have to enable other security protocol versions to resolve this issue:&lt;BR /&gt;&lt;BR /&gt;ServicePointManager.Expect100Continue = true;&lt;BR /&gt;ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12&lt;BR /&gt;SecurityProtocolType.Tls&lt;BR /&gt;SecurityProtocolType.Tls11&lt;BR /&gt;SecurityProtocolType.Ssl3;&lt;BR /&gt;&lt;BR /&gt;//createing HttpWebRequest after ServicePointManager settings&lt;/P&gt;&lt;P&gt;HttpWebRequest request = (HttpWebRequest)WebRequest.Create("&lt;A href="https://google.com/api/" target="_blank"&gt;https://google.com/api/&lt;/A&gt;")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you create HttpWebRequest before the ServicePointManager settings it will fail and shows the error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 06:03:21 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Could-not-create-SSL-TLS-secure-channel/m-p/79267#M49849</guid>
      <dc:creator>creigmalta</dc:creator>
      <dc:date>2021-10-18T06:03:21Z</dc:date>
    </item>
  </channel>
</rss>

