Note that there are some explanatory texts on larger screens.

plurals
  1. POAmazon S3 error - Could not establish trust relationship for the SSL/TLS secure channel
    primarykey
    data
    text
    <p>I'm using Amazon .NET SDK, and adding file from my ASP.NET MVC app is <strong>working fine</strong> from my dev machine, when I`m deploying the app (on <strong>AppHarbor</strong>) I get the following error:</p> <p>Could not establish trust relationship for the SSL/TLS secure channel.</p> <p>Here is the code I`m using:</p> <pre><code>var config = new Amazon.S3.AmazonS3Config(); config.CommunicationProtocol = Amazon.S3.Model.Protocol.HTTPS; using (var client = Amazon.AWSClientFactory.CreateAmazonS3Client("key", "secret", config)) { var putRequest = new Amazon.S3.Model.PutObjectRequest(); putRequest.BucketName = "media.bunkerapp.com"; putRequest.CannedACL = Amazon.S3.Model.S3CannedACL.PublicRead; putRequest.ContentType = file.ContentType; putRequest.InputStream = file.InputStream; putRequest.Key = "mykey"; Amazon.S3.Model.S3Response response = client.PutObject(putRequest); response.Dispose(); } </code></pre> <p>I know that EU bucket cannot contains ., <a href="https://stackoverflow.com/questions/4818106/amazon-s3-issues-getting-ssl-to-work-with-c-sharp-sdk">as seen on this question</a> but I'm using a US Standard bucket. And again, the issue here is that it's not working on AppHarbor. I tried to roll-back to a 1 instance app, but it throw the same error, here is the stack trace:</p> <pre><code> at Amazon.S3.AmazonS3Client.ProcessRequestError(String actionName, HttpWebRequest request, WebException we, HttpWebResponse errorResponse, String requestAddr, WebHeaderCollection&amp; respHdrs, Type t) at Amazon.S3.AmazonS3Client.Invoke[T](S3Request userRequest) at Amazon.S3.AmazonS3Client.PutObject(PutObjectRequest request) at MyController... </code></pre> <p>Any pointer would be greatly appreciated.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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