Secret key:

openssl rsa -noout -modulus -in server.key | openssl md5

Certificate:

openssl x509 -noout -modulus -in domain.crt | openssl md5

CSR request:

openssl req -noout -modulus -in domain.csr | openssl md5