Juan Lang : cryptui: Move cert creation to a helper function.