Should I use RSA or Ecdsa?
Compared to RSA, ECDSA has been found to be more secure against current methods of cracking thanks to its complexity. ECDSA provides the same level of security as RSA but it does so while using much shorter key lengths.
How do I know if my private key and certificate match?
To verify that an RSA private key matches the RSA public key in a certificate you need to i) verify the consistency of the private key and ii) compare the modulus of the public key in the certificate against the modulus of the private key. If it doesn't say 'RSA key ok', it isn't OK!"