{"action":"created","issue":{"url":"https://api.github.com/repos/fog/fog/issues/3734","labels_url":"https://api.github.com/repos/fog/fog/issues/3734/labels{/name}","comments_url":"https://api.github.com/repos/fog/fog/issues/3734/comments","events_url":"https://api.github.com/repos/fog/fog/issues/3734/events","html_url":"https://github.com/fog/fog/issues/3734","id":113459312,"number":3734,"title":"Directory problem","user":{"login":"juanpastas","id":671721,"avatar_url":"https://avatars.githubusercontent.com/u/671721?v=3","gravatar_id":"","url":"https://api.github.com/users/juanpastas","html_url":"https://github.com/juanpastas","followers_url":"https://api.github.com/users/juanpastas/followers","following_url":"https://api.github.com/users/juanpastas/following{/other_user}","gists_url":"https://api.github.com/users/juanpastas/gists{/gist_id}","starred_url":"https://api.github.com/users/juanpastas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanpastas/subscriptions","organizations_url":"https://api.github.com/users/juanpastas/orgs","repos_url":"https://api.github.com/users/juanpastas/repos","events_url":"https://api.github.com/users/juanpastas/events{/privacy}","received_events_url":"https://api.github.com/users/juanpastas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-26T21:53:10Z","updated_at":"2015-10-27T20:19:39Z","closed_at":null,"body":"I am getting:\r\n\r\n```\r\nExcon::Errors::SocketError (hostname \"myapp-staging1.myapp-staging1.s3-us-west-2.amazonaws.com\" does not match the server certificate (OpenSSL::SSL::SSLError)):\r\n```\r\n\r\nwith this config:\r\n\r\n```\r\nCarrierWave.configure do |config|\r\n    config.fog_credentials = {\r\n      :provider               => 'AWS',                        # required\r\n      :aws_access_key_id      => ENV[\"aws_access_key_id\"],                        # required\r\n      :aws_secret_access_key  => ENV[\"aws_secret_access_key\"],                        # required\r\n      :region                 => 'us-west-1',                  # optional, defaults to 'us-east-1'\r\n    }\r\n    config.fog_directory  = ENV[\"fog_directory\"]                          # required\r\n  end\r\n```\r\n\r\n`ENV[\"fog_directory\"]` is `myapp-staging1` on server console.\r\n\r\nWhy I could be getting a repeated part in `myapp-staging1.myapp-staging1.s3-us-west-2.amazonaws.com`?\r\n\r\nI also created an issue on [carrierwave](https://github.com/carrierwaveuploader/carrierwave/issues/1761).  And a [gist](https://gist.github.com/juanpastas/eea1b7b236b35835ebc2) with the entire trace."},"comment":{"url":"https://api.github.com/repos/fog/fog/issues/comments/151631284","html_url":"https://github.com/fog/fog/issues/3734#issuecomment-151631284","issue_url":"https://api.github.com/repos/fog/fog/issues/3734","id":151631284,"user":{"login":"rscardinho","id":3933421,"avatar_url":"https://avatars.githubusercontent.com/u/3933421?v=3","gravatar_id":"","url":"https://api.github.com/users/rscardinho","html_url":"https://github.com/rscardinho","followers_url":"https://api.github.com/users/rscardinho/followers","following_url":"https://api.github.com/users/rscardinho/following{/other_user}","gists_url":"https://api.github.com/users/rscardinho/gists{/gist_id}","starred_url":"https://api.github.com/users/rscardinho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rscardinho/subscriptions","organizations_url":"https://api.github.com/users/rscardinho/orgs","repos_url":"https://api.github.com/users/rscardinho/repos","events_url":"https://api.github.com/users/rscardinho/events{/privacy}","received_events_url":"https://api.github.com/users/rscardinho/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T20:19:39Z","updated_at":"2015-10-27T20:19:39Z","body":"hmmm. but env var that you're using to set the fog directory have any dots?\r\nadd this on your carrierwave config block `Fog.credentials = { path_style: true }` and check if it works"}}