move getCertificateFingerprint() to Utils since its static