I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 100f6dac authored by zzz's avatar zzz
Browse files

simple test script

parent c67404e7
No related branches found
No related tags found
No related merge requests found
#
# Run 'certtool -i' on all certificate files
# Returns nonzero on failure
#
# zzz 2011-08
# public domain
#
cd `dirname $0`/../../installer/resources/certificates
for i in *
do
echo "Checking $i ..."
EXPIRES=`certtool -i < $i | grep 'Not After'`
if [ $? -ne 0 ]
then
echo "********* FAILED CHECK FOR $i *************"
FAIL=1
fi
echo $EXPIRES
# TODO - parse and fail if it expires soon
done
if [ "$FAIL" != "" ]
then
echo "******** At least one file failed check *********"
else
echo "All files passed"
fi
exit $FAIL
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment