Verifying Private Key matches a Certificate

If you get a certificate from a customer and you should implement it in some piece of software (for example nginx). The first step is to compare the received files.
After this check the displayed hash should match of your key and certificate. If you get the same hash, it can be installed;)