added method to generate sha256 hash to use to identify certificate