...the Ruby OpenSSL module...

OpenSSL itself supports this, the Ruby module just doesn't appear to expose it.