openssl x509 -in /path/to/cert.crt -noout -modulus | openssl sha1 openssl rsa -in /path/to/cert.key -noout -modulus | openssl sha1