The to_pem method is broken in all the new Ruby versions due to upstream changes in the OpenSSL library.
@zaru @rossta @mohamedhafez can someone please merge my pull request in order to fix the issue? It also improves test coverage for PEM.
Here's the pull request:
#97
Thanks