Use sha256 instead of sha1 for the certificate hash

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Merge pull request #81 from stgraber/master

Use sha256 instead of sha1 for the certificate hash