aristidb / aws

Amazon Web Services for Haskell
BSD 3-Clause "New" or "Revised" License
239 stars 108 forks source link

S3 Buckets with "." in the name cause TLS issues when running PutObject #261

Closed aviaviavi closed 5 years ago

aviaviavi commented 5 years ago
HttpExceptionRequest Request {
  host                 = "scarf.sh.s3.amazonaws.com"
  port                 = 443
  secure               = True
  requestHeaders       = [("Date","Fri, 10 May 2019 06:02:29 GMT"),("Authorization","<REDACTED>"),("x-amz-acl","public-read")]
  path                 = "/packages/toodles-1.2.1-macos.tar.gz"
  queryString          = ""
  method               = "PUT"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 (InternalException (HandshakeFailed (Error_Protocol ("certificate rejected: [NameMismatch \"scarf.sh.s3.amazonaws.com\"]",True,CertificateUnknown))))

I verified I can upload to a bucket replacing "." with "-"

Let me know if I can provide any other information

aviaviavi commented 5 years ago

My apologies, after further investigation, the issue seems to be something different. It actually appears with any bucket name when I try to run this code on an ec2 instance, a separate problem.