Skip to content

Instantly share code, notes, and snippets.

@spellancer
Created November 8, 2013 14:17
Show Gist options
  • Save spellancer/7371644 to your computer and use it in GitHub Desktop.
Save spellancer/7371644 to your computer and use it in GitHub Desktop.
2b
#!/bin/bash
crsa=$(openssl rsa -noout -modulus -in input.txt | openssl md5)
ccer=$(openssl x509 -noout -modulus -in input.txt | openssl md5)
if [ "$crsa" == "$ccer" ]; 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