Profile cover photo
Profile photo
tom saffell
76 followers
76 followers
About
Posts

I dont normally blog about coding, because most things I learn have already been written by someone else. But this one needs to be easier to find on google, so here goes...

If boto is throwing "HTTPException: Invalid and/or missing SSL certificate", and you have a bucket name with periods (".") in it, then the solution is to add  
 calling_format=boto.s3.connection.OrdinaryCallingFormat() to your call to the S3Connection constructor. 

The reason is that by default boto attempts to create the virtual url structure, e.g. https://my.bucket.s3.amazonaws.com, but S3's SSL cert wont cover that (because of the period between the 'my' and 'bucket'), so you need to use the 'ordinary calling format', which puts your bucket after the amazonaws.com. So you'll have something like:

conn = S3Connection(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, calling_format=boto.s3.connection.OrdinaryCallingFormat())

Hope that helps someone one day. Google - come index: HTTPException: Invalid and/or missing SSL certificate
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Add a comment...

No Google+, you did not 'enhance' my photo, you merely pumped the saturation in the skin tones;  I'm English  -  I'm supposed to be pale!   #googleplus   #autoenhancefail  
Add a comment...

Post has attachment
Jack Pip picked the right hat to wear today. Gold and Silver for GB. Nice work boys.
Photo
Add a comment...

Current composition of circles: 10% family, 45% acquaintances, 45% friends. I'm loving Google+ - even if it's nothing more than a slick UI for tagging (circling) my existing address book, it's a great tool.
Add a comment...
Wait while more posts are being loaded