#!/bin/sh

DIR=`pwd`
ODIR=$1

(while read url cert; do
   cfile=""
   if [ "x$cert" != "x" ]; then
      cfile=$DIR/certs/$cert
   fi
   $DIR/scripts/pull-and-verify.sh $url $ODIR $cfile
done) < $ODIR/metadata.lst