Fixed AWS S3 bucket SSL error by resolving bucket in path instead of sub-domain.