boto/boto — Issue #421: Cant use dot for bucketname 
Author: openkava
Created: 2011-12-02 01:56:42+00:00
State: open

code is here :
from boto.s3.connection import S3Connection
conn =S3Connection('XXXXX','XXXXX')
rs=conn.get_all_buckets()
for b in rs:
print b.name
b=conn.get_bucket('AAAAA')
for key in b.list():

print key.name

----------------------
1 I create two bucket ( photo_bucket ,photo.mydomain.com ) when I get the bucket name (photo_bucket) have no char '.' in it .it works . but when I use "photo.mydomain.com" ,it has error .
---------------------------------------
InvalidCertificateException: Host photo.mydomain.com.s3.amazonaws.com returned an invalid certificate (hostname mismatch): {'notAfter': 'Dec 18 23:59:59 2013 GMT', 'subjectAltName': (('DNS', '*.s3.amazonaws.com'), ('DNS', 's3.amazonaws.com')), 'subject': ((('countryName', u'US'),), (('stateOrProvinceName', u'Washington'),), (('localityName', u'Seattle'),), (('organizationName', u'Amazon.com Inc.'),), (('commonName', u'*.s3.amazonaws.com'),))}

can anyone fix it ?