See the Wiki page on TLS.
As explained on the page, decrypting traffic using the RSA private key only works in a limited number of cases.
Using the keylogfile method to get per-session secrets works in all cases.