Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy wouldn't I be able to establish a trust relationship for a SSL/TLS channel?
    primarykey
    data
    text
    <p>I have a piece of .NET code that is erroring out when it makes a call to <code>HTTPWebRequest.GetRequestStream</code>. Here is the error message:</p> <blockquote> <p>The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.</p> </blockquote> <p>I've read a few things that suggest that I might need a certificate on the machine running the code, but I believe I have all the require certificates...</p> <p>This is how I checked to see if I had the required certificates:</p> <ol> <li>hit the webservice using Firefox.</li> <li>Look at the certificates being used to hit that web service by looking at the security info through the browser</li> <li>export the certificates</li> <li>import the certificates through Internet Options in the control panel</li> </ol> <p>Should this be sufficient? I am still getting the error.</p> <p>Code:</p> <pre><code> var request = (HttpWebRequest)HttpWebRequest.Create(requestUrl); //my url request.Method = StringUtilities.ConvertToString(httpMethod); // Set the http method GET, POST, etc. if (postData != null) { request.ContentLength = postData.Length; request.ContentType = contentType; using (var dataStream = request.GetRequestStream()) { dataStream.Write(postData, 0, postData.Length); } } </code></pre> <p><strong>UPDATE:</strong></p> <p>Adding some screen shots of my certs. Let me know if anything looks wrong:</p> <p>First, we have the cert that Firefox is using:</p> <p><img src="https://i.stack.imgur.com/bpThG.png" alt="enter image description here"></p> <p>Next, we have what is in my Trusted Root Certs according to the MMC:</p> <p><img src="https://i.stack.imgur.com/T2Fte.png" alt="enter image description here"></p> <p>Last, we have what is in my Intermediate certs according to the MMC:</p> <p><img src="https://i.stack.imgur.com/PMsR5.png" alt="enter image description here"></p> <p>Does this look right?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload