• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. User Guide (S3cmd)
  4. Troubleshooting
  5. A Connection to OBS Fails to Be Established Through HTTPS

A Connection to OBS Fails to Be Established Through HTTPS

Symptom

When S3cmd is connecting to OBS through HTTPS, the following error is displayed during the connectivity test, as shown in Figure 1.

Figure 1 Connection exception

Possible Causes

The S3cmd dependency package has an outdated version of Python or OpenSSL.

Fault Diagnosis

None

Procedure

Upgrade Python and OpenSSL. Then retry the connection to OBS according to the following procedure.

For details about the version requirement of S3cmd on Python, visit the S3cmd official website.

  1. Open the command line tool.
  2. Run the following command to upload a test object to an OBS bucket through HTTPS.

    s3cmd put --ssl test s3://my-bucket

    If the upload is successful, S3cmd has successfully connected to OBS through HTTPS.

  3. (Optional) Run the following command to delete the test object.

    s3cmd rm s3://my-bucket/test