<?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 the underlying connection was closed could not establish trust relationship for the SSL/TLS in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-underlying-connection-was-closed-could-not-establish-trust/m-p/53061#M28222</link>
    <description>&lt;P&gt;We get this message once in a while (sorry for the vagueness here) on our production system. We've been using the system for at least 5 years. My beest guess as to how often this happens would be maybe 1% of our transactions. I make the connection using the API with C# code. Thanks for any help, and I'll be happy to provide any other details.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Nov 2015 20:19:19 GMT</pubDate>
    <dc:creator>cnpdev45170</dc:creator>
    <dc:date>2015-11-23T20:19:19Z</dc:date>
    <item>
      <title>the underlying connection was closed could not establish trust relationship for the SSL/TLS</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-underlying-connection-was-closed-could-not-establish-trust/m-p/53061#M28222</link>
      <description>&lt;P&gt;We get this message once in a while (sorry for the vagueness here) on our production system. We've been using the system for at least 5 years. My beest guess as to how often this happens would be maybe 1% of our transactions. I make the connection using the API with C# code. Thanks for any help, and I'll be happy to provide any other details.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2015 20:19:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-underlying-connection-was-closed-could-not-establish-trust/m-p/53061#M28222</guid>
      <dc:creator>cnpdev45170</dc:creator>
      <dc:date>2015-11-23T20:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: the underlying connection was closed could not establish trust relationship for the SSL/TLS</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-underlying-connection-was-closed-could-not-establish-trust/m-p/53062#M28223</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/19315"&gt;@cnpdev45170﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would help if you gave us a bit more information on your operating system and webserver versions. &amp;nbsp;Are you using XML or SOAP?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2015 21:30:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-underlying-connection-was-closed-could-not-establish-trust/m-p/53062#M28223</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2015-11-23T21:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: the underlying connection was closed could not establish trust relationship for the SSL/TLS</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-underlying-connection-was-closed-could-not-establish-trust/m-p/53064#M28225</link>
      <description>&lt;P&gt;OS is Windows 5.2.3790. I got this by logging on the server and running ver.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The web server is IIS 6.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know if I'm using XML or SOAP. I send an HTTP request. Here's my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;public&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2"&gt;static&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2"&gt;string&lt;/FONT&gt;&lt;FONT size="2"&gt; SendWebRequest (&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;string&lt;/FONT&gt;&lt;FONT size="2"&gt; URL, &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;string&lt;/FONT&gt;&lt;FONT size="2"&gt; PostString)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;#region&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; "Prepare request"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" size="2"&gt;&lt;FONT color="#2b91af" size="2"&gt;WebRequest&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; TheRequest;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" size="2"&gt;&lt;FONT color="#2b91af" size="2"&gt;WebResponse&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; TheResponse;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;TheRequest = &lt;/FONT&gt;&lt;FONT color="#2b91af" size="2"&gt;&lt;FONT color="#2b91af" size="2"&gt;HttpWebRequest&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;.Create(URL);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;TheRequest.ContentType = &lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;&lt;FONT color="#a31515" size="2"&gt;"application/x-www-form-urlencoded"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;; &lt;/FONT&gt;&lt;FONT color="#008000" size="2"&gt;&lt;FONT color="#008000" size="2"&gt;// text/html multipart/form-data &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;TheRequest.Method = &lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;&lt;FONT color="#a31515" size="2"&gt;"POST"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" size="2"&gt;&lt;FONT color="#2b91af" size="2"&gt;StreamWriter&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; myWriter = &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;null&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;TheRequest.ContentLength = PostString.Length;&lt;/P&gt;&lt;P&gt;#endregion&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;#region&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; "Send request"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;string&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; ResponseAsString = &lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;&lt;FONT color="#a31515" size="2"&gt;""&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;try&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;myWriter = &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;new&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#2b91af" size="2"&gt;&lt;FONT color="#2b91af" size="2"&gt;StreamWriter&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;(TheRequest.GetRequestStream());&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;myWriter.Write(PostString);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;catch&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; (&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2"&gt;&lt;FONT color="#2b91af" size="2"&gt;Exception&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; e)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;throw&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; e; &lt;/FONT&gt;&lt;FONT color="#008000" size="2"&gt;&lt;FONT color="#008000" size="2"&gt;// client is responsible for handling exceptions, the try/catch is set to call the finally statements&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;finally&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; (myWriter != &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;null&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;myWriter.Close();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;#endregion&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;#region&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; "Get and turn response into a string"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;TheResponse = TheRequest.GetResponse();&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" size="2"&gt;&lt;FONT color="#2b91af" size="2"&gt;Stream&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; theResponseStream = TheResponse.GetResponseStream();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" size="2"&gt;&lt;FONT color="#2b91af" size="2"&gt;StreamReader&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; oStreamReader = &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;new&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#2b91af" size="2"&gt;&lt;FONT color="#2b91af" size="2"&gt;StreamReader&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;(theResponseStream);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ResponseAsString = oStreamReader.ReadToEnd();&lt;/P&gt;&lt;P&gt;oStreamReader.Close();&lt;/P&gt;&lt;P&gt;TheResponse.Close();&lt;/P&gt;&lt;P&gt;#endregion&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;return&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; ResponseAsString;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2015 22:06:51 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-underlying-connection-was-closed-could-not-establish-trust/m-p/53064#M28225</guid>
      <dc:creator>cnpdev45170</dc:creator>
      <dc:date>2015-11-23T22:06:51Z</dc:date>
    </item>
  </channel>
</rss>

