Oops, sorry about the backwards patch.
hexdigest returns the MD5 in hexidecimal representation [0-9A-F].
Amazon's docs specify Content-MD5 should be in base64 (
http://en.wikipedia.org/wiki/Base64) .
In hindsight, there probably isn't a need for the commandline switch (--content-md5). There isn't a good reason not to use Content-MD5 if you're already calculating the MD5.