Skip to content

bucketname duplicated with host_bucket #23

@mark-kubacki

Description

@mark-kubacki

Given this configuration:

[default]
host_base = s3.nl-ams.scw.cloud
host_bucket = %(bucket)s.s3.nl-ams.scw.cloud
bucket_location = nl-ams
use_https = True

I want to upload an file:

s3-cli --part-size 512 cp *localname* s3://my-storage

Instead, this ends in:

RequestError: send request failed
caused by: Post "https://my-storage.my-storage.s3.nl-ams.scw.cloud/the-files-localname?uploads=": tls: failed to verify certificate: x509: certificate is valid for *.s3-website.nl-ams.scw.cloud, *.s3.nl-ams.scw.cloud, s3-website.nl-ams.scw.cloud, s3.nl-ams.scw.cloud, not my-storage.my-storage.s3.nl-ams.scw.cloud
  • The bucket appears twice in the hostname.
  • The certificate is valid and the host has a current ca-certificate.crt file that gets used, so this could be a second-order effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions