Fix deprecated OpenSSL::Digest::Digest

Basically the same thing that was done in https://github.com/aws/aws-sdk-ruby/pull/434.