[CLI] Simplify cert retrieval script