ipseckey: Refactor creation of certificate enumerator