Skip to content

Instantly share code, notes, and snippets.

@spellancer
Created November 8, 2013 14:18
Show Gist options
  • Save spellancer/7371648 to your computer and use it in GitHub Desktop.
Save spellancer/7371648 to your computer and use it in GitHub Desktop.
1b
#!/bin/bash
check=$(openssl verify input.txt| grep "self signed certificate")
if [ -n "$check" ]; then
echo "1"
else
echo "0"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment