Openssl can be used for verifying if there is a match between a private key and certificate.
Enter these commands and analyze the output.
openssl x509 -noout -text -in server.crt
openssl rsa -noout -text -in server.key
Compare the two sections listed below, they should be the same if there is a match.