Use sha256 instead of sha1 for the certificate hash

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>