peterknife / boto

Automatically exported from code.google.com/p/boto
0 stars 0 forks source link

amazon s3 InvalidCertificate #554

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 ? 

Original issue reported on code.google.com by openk...@gmail.com on 15 Sep 2011 at 9:23