ssl-proxy: simplify scanning of signing policy files


remove code duplication