Method 1 – Using OpenSSL and MD5
In the first method, The md5 value of certificate, key, and CSR should be same for all to work properly. If any of md5 is different means that file doesn’t relate to others. For example, check the md5 values are same for all the keys. It means they are related to each other and work properly.
Method 2 – Using Openssl and sha256sum
Second method check for the SHA sum values of all files and check if the value of all files are same. For example, check the sha2 sum values are same for all the keys. It means they are related to each other and work properly.