s3tools / s3cmd

Official s3cmd repo -- Command line tool for managing S3 compatible storage services (including Amazon S3 and CloudFront).
https://s3tools.org/s3cmd
GNU General Public License v2.0
4.54k stars 903 forks source link

SSL certificate verification failure (SSLV3_ALERT_HANDSHAKE_FAILURE) on Ubuntu 22.04 #1323

Open 4integration opened 1 year ago

4integration commented 1 year ago

Hi,

When using Ubuntu 18.04.2 it works fine

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:        18.04
Codename:       bionic

$ openssl version
OpenSSL 1.1.0g  2 Nov 2017 (Library: OpenSSL 1.1.1  11 Sep 2018)

$ s3cmd --version
s3cmd version 2.0.1

$ s3cmd ls s3://
2023-04-13 10:58  s3://xxxxx-document-archive
2021-10-20 12:07  s3://xxxxx-templates
2021-04-23 06:50  s3://xxxxx-backup

When using Ubuntu 22.04.2 it doesn't work. Using the same .s3cfg

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.2 LTS
Release:        22.04
Codename:       jammy

$ openssl version
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)

$ s3cmd --version
s3cmd version 2.2.0

$ s3cmd ls s3://
ERROR: SSL certificate verification failure: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:997)

Any idea why it is happening?

4integration commented 1 year ago

Any idea?

tashrifbillah commented 1 month ago

Having same issue in CentOS 7, Python 3.12.4, s3cmd 2.4.0:

$ s3cmd --no-check-certificate du -H s3://hello-world
ERROR: SSL certificate verification failure: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)
tashrifbillah commented 1 month ago

This seems to work: https://github.com/s3tools/s3cmd/issues/955#issuecomment-483127597

4integration commented 1 week ago

Still the same issue