Change the certificate fingerprint digest to sha256

While here correct some indentation.