Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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