Refactor OpenSSL RSA type check to opensslrsa_valid_key_alg helper
Move the repetetive code into a small opensslrsa_valid_key_alg() helper function.
Closes #3785 (closed)
Move the repetetive code into a small opensslrsa_valid_key_alg() helper function.
Closes #3785 (closed)