[COMMON][ES] Simplify cert retrieval script