Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 16 lines (14 sloc) 397 Bytes
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "Usage: $0 key_directory certstore_directory";
exit
fi
for i in $1/*
do
echo "================================================================"
echo "Processing $i"
if [ ! -d "$2/`basename -s .pem $i`" ]; then
mkdir $2/`basename -s .pem $i`
fi
./fetchallcerts.py `tail -n 1 $i` --store $2/`basename -s .pem $i` --pub $i
done