It looks like it's supported back to 1.8.7
http://ruby-doc.org/stdlib-1.8.7/libdoc/openssl/rdoc/OpenSSL/PKey/RSA.html