checkremotecerts.sh: support for ports