Fix Digest to work over ssl.