Fixed cert chains in Ruby 2+
Merge pull request #8 from arax/r2_chain_fix

Fixed cert chains in Ruby 2+