Refactor the OpenSSL RSA usage to use newer APIs
OpenSSL 3 deprecates most of the RSA* family and associated APIs. Reimplement the existing functionality using a newer set of APIs which will be used when compiling/linking with OpenSSL 3.0.0 or newer versions.
This commit is contained in: