The easiest way is probably to check if the modulus of the public key embedded in the certificate / private key / CSR request.
certificate: openssl x509 –noout –modulus –in <filename>
private key: openssl rsa –noout –modulus –in <filename>
request: openssl req -noout -modulus -in <filename>