LoginSignup
3
3

More than 5 years have passed since last update.

PythonのbotoでS3に接続した時のSSLエラー対処法

Posted at

S3を独自ドメインで使う際に、バケット名に「.」が入るけど、この際、SSL接続はサポートされなくなるみたい。

この時、botoでS3に接続すると、SSL周りのエラーが出ちゃう。

以下のコードで解決。

from boto import s3
from boto.s3.connection import OrdinaryCallingFormat 
conn = s3.connect_to_region('eu-central-1', calling_format=OrdinaryCallingFormat())

元ネタ(下の方に、US以外の国の話題)
https://github.com/boto/boto/issues/2836

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3