The sorry state of OpenSSL usability (2017)
My question is: Why are you trying to use RSA at all?It's 2019! I can't think of anyone who seriously recommends RSA anymore. Switch to elliptic curve cryptography, where footbullets like a 512-bit RSA key offer aren't even on the table.